If i have this in my batch file:
cd /d %~dp0
powershell.exe -File Build_01\sp_script.ps1
powershell.exe -File Build_02\sp_script.ps1
pause
How do I stop the execution of the batch if Build_01\sp_script.ps1 throws an error?
If i have this in my batch file:
cd /d %~dp0
powershell.exe -File Build_01\sp_script.ps1
powershell.exe -File Build_02\sp_script.ps1
pause
How do I stop the execution of the batch if Build_01\sp_script.ps1 throws an error?