惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
G
Google Developers Blog
J
Java Code Geeks
B
Blog
C
Check Point Blog
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
I
InfoQ
A
About on SuperTechFans
WordPress大学
WordPress大学
F
Fortinet All Blogs
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
月光博客
月光博客
Y
Y Combinator Blog
Jina AI
Jina AI
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - DataFlow

word break 在不同浏览器中的表现 系统架构 创造HTTPS的是个神 为Chrome开发插件提高工作效率 Javascript 控制style 小结 svcutil 生成代理类时的问题 xeam Build Definition Extension uninstall 卸载 Wcf客户端配置里Endpoint的Name属性无效 屏蔽电信流氓弹出广告 正则替换中的一个Bug SQL server 性能相关 SQL Express 相关 时间格式 输出一个在没有.Net 环境的机器也可以跑得安装包 再谈性能力 SCOM Configuration NumSamples and Absolute XML中的时间 decimal.Round 的区别 反序列化怪现象,数组无父
Dos中常用的命令
DataFlow · 2012-05-03 · via 博客园 - DataFlow

1.  重定向

cmd >file                    standard output 重定向到file

cmd 1> nul 2>&1        无输出.

cmd 1> file 2>&1        standard output 重定向到file, standard error 重写向到 file.

cmd 1>> file 2>&1      standard output 重定向到file, standard error 重写向到 file. 均为追加模式。

2. findstr

findstr /NI /C:": error " file           在File中搜索字符串": error ", 不区分大小写

findstr /m /s /d:d:\ ".*" *.txt       搜索D盘下所有目录及子目录,显示所有match ".*"的txt文件的文件名

if %ERRORLEVEL% == 0 goto ERROR

3. if or not

if not exist folder md folder           如果不存在folder, 则创建folder

IF /I "%vv%"=="OK" (
...

) ELSE (

...

)                                                 如果%vv%=="OK" (不区分大小写), 则...