Executing multiple commands from a Windows cmd script

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

    If you are running in Windows you can use the following command.

    Drive:

    cd "Script location"
    schtasks /run /tn "TASK1"
    schtasks /run /tn "TASK2"
    schtasks /run /tn "TASK3"
    exit
    

提交回复
热议问题