Invalid exit code from script call in cmd.exe command line
#34
andry81
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Example:
1.bat:
Output:
ERRORLEVEL=0To workaround:
cmd.exe /c call 1.batOR
cmd.exe /c "1.bat & call exit /b %%ERRORLEVEL%%"OR
cmd.exe /c "1.bat & "%%CONTOOLS_ROOT%%/std/errlvl.bat""For more details see: https://github.com/andry81/contools/tree/HEAD/scripts/tools/std/errlvl.bat
Beta Was this translation helpful? Give feedback.
All reactions