Search found 1 match
- 20 Jul 2020 21:42
- Forum: DOS Batch Forum
- Topic: bat1 exec bat2(exit 1) , End together
- Replies: 1
- Views: 2772
bat1 exec bat2(exit 1) , End together
I want to get the exit code of 'bat2' But after 'bat2' ends, 'bat1' ends with it ---bat1---- call "command" > result.txt call bat2 echo %ERRORLEVEL% ::Not executed PAUSE ::Not executed --bat2---- @echo off SET RESULT= for /f "delims=" %%a in (result.txt) do call :CallBack "%%a" GOTO End :CallBack ec...