Executing multiple commands from a Windows cmd script

后端 未结 8 1490
鱼传尺愫
鱼传尺愫 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

    0 讨论(0)
  • 2020-12-12 13:32

    Not sure why the first command is stopping. If you can make it parallel, you can try something like

    start cmd.exe /C 1.bat      
    start cmd.exe /C 2.bat
    
    0 讨论(0)
提交回复
热议问题