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