开发者

PowerShell run multi scripts

Is there a way to create a script that runs multi scripts? Also the first script should finish before next script is allowed to start.

Example:

.\script开发者_开发百科1.ps1 arg1

#wait until script1 is done
.\script2.ps1 arg1 arg2

#wait until script2 is done
.\script3.ps1 arg1 arg2


the example you gave is a valid script, just put it in a script file and run it.


just try :

.\script1.ps1 arg1;.\script2.ps1 arg1 arg2;.\script3.ps1 arg1 arg2
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜