Executing multiple commands from a Windows cmd script

后端 未结 8 1511
鱼传尺愫
鱼传尺愫 2020-12-12 12:54

I\'m trying to write a Windows cmd script to perform several tasks in series. However, it always stops after the first command in the script.

The command it stops af

8条回答
  •  庸人自扰
    2020-12-12 13:32

    You can use the && symbol between commands to execute the second command only if the first succeeds. More info here http://commandwindows.com/command1.htm

提交回复
热议问题