EXIT
Terminates the current command prompt or batch script.
EXIT [/B] [exitCode]
Where:
/B
- Specifies the termination of the currentcmd
batch. If run outside of a batch script, it will terminatecmd
.exitCode
- Specifies the exit code. If/B
is specified, setsERRORLEVEL
to that number (see IFIF). Ifcmd.exe
exits, it sets the process exit code to that number.
Example: End the current batch script (or command prompt):
exit /b
Comments