EXIT
Quit CMD.EXE or the current batch script.
The options below are only available in Windows XP (or later).
Syntax EXIT [/B] [exitCode] Key /B When used in a batch script it will exit the current batch script instead of CMD.EXE. If executed from outside a batch script, it will still quit CMD.EXE exitCode A numeric number. if /B is specified, sets ERRORLEVEL that number. If quitting CMD.EXE, sets the process exit code with that number.
Gentlemen you can’t fight in here this is the war room." - President Muffley (Dr. Strangelove)
Related Commands:
COLOR - Set an errorlevel (without exiting)
KILL - Remove a program from memory
Equivalent Linux BASH commands:
break - Exit from a loop