[关闭]
@gongzhen 2016-08-22T03:46:06.000000Z 字数 360 阅读 2926

一行中运行多条命令

gongzhen-tech


原来 CMD 可以这么玩哦:

&

command1 & command2
Execute Command1 and then execute Command2

for example:
cmd /c dir "c:\" & cmd /c dir "d:\"

&&

command1 && command2
Runs the command2 only when command1 doesn't Complete successfully

||

command1 || command2
Runs the second command if the first command had an error

()

(command1 || command2) || (command3 & command4)
Defines the order in which commands are to be executed

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注