goto :EOF in cmd.exe command line does nothing and sets the exit code
#47
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Examples:
Output:
ERRORLEVEL=1Note
Any
gotoin thecmd.execommand line will reset the exit code and the error message is suppressed. But does not reset in a console prompt.Note
The
cmd.exesets the exit code to 0 after start: #45Note
The
echoin thecmd.execommand line does reset the exit code. But does not reset in a console prompt.Beta Was this translation helpful? Give feedback.
All reactions