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

推荐订阅源

N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
IT之家
IT之家
V
V2EX
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
B
Blog
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网

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