Difference between .bat and .cmd script extension
#49
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.
-
The
.batextension scripts has more relaxed rules versus the.cmdextensions.Interference with the
ERRORLEVELvariableTests:
https://github.com/andry81/contools--debug/tree/HEAD/test_error_level_for_bat_file_extension.bat
https://github.com/andry81/contools--debug/tree/HEAD/test_error_level_for_cmd_file_extension.cmd
Results:
test_error_level_for_bat_file_extension.bat:
test_error_level_for_cmd_file_extension.cmd:
Note
The
set A=Bexpression does not change theERRORLEVELin a.batscript, when.cmddoes reset it to 0.Beta Was this translation helpful? Give feedback.
All reactions