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

推荐订阅源

The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
Engineering at Meta
Engineering at Meta
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
I
InfoQ
S
SegmentFault 最新的问题
博客园 - 叶小钗
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
IT之家
IT之家
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
月光博客
月光博客
The Cloudflare Blog
U
Unit 42
GbyAI
GbyAI
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog

博客园 - 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" (不区分大小写), 则...