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
精彩评论