Multiple commands on a single line in a Windows batch file

前端 未结 2 1052
一向
一向 2020-12-02 07:55

In Unix, we can put multiple commands in a single line like this:

$ date ; ls -l ; date

I tried a similar thing in Windows:



        
2条回答
  •  情书的邮戳
    2020-12-02 08:41

    Can be achieved also with scriptrunner

    ScriptRunner.exe -appvscript demoA.cmd arg1 arg2 -appvscriptrunnerparameters -wait -timeout=30 -rollbackonerror -appvscript demoB.ps1 arg3 arg4 -appvscriptrunnerparameters -wait -timeout=30 
    

    Which also have some features as rollback , timeout and waiting.

提交回复
热议问题