How to run multiple Scripts one by one in a powershell script -


i have 8 scripts in powershell run 1 one. let's call scripts: script1.bat, script2.bat, .., script8.bat.

now need script runs scripts.bat 1 one, not simultaneously. , there way check, if each script successful?

./script1.bat ./script2.bat ./script3.bat ... 

you'll picture, guess. run them in sequence. determine whether sucessful or not depends on how batch files signal errors or sucessful completion. if exit exit /b 234 or similar on error can use $lastexitcode or $? determine that. whether changes made batch files done, of there no other way of figuring out whether sucessful.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -