I have a batch script that calls a sequence of batch files.
There is an error case where I need to exit the batch file that was called, as well as the parent batch file. Is it possible to accomplish this inside the child batch file?
test.bat
rem Test1.bat will exit with error code.
call test1.bat
rem Want script to stop if test1.bat errors.
call test2.bat
test1.bat
rem Can I get test.bat to terminate from inside test1.bat?
exit /b 1