exit

Exits the current batch script or the controlling thread. When running from Windows this will close the command prompt.
SYNTAX:
EXIT [/B] [exitcode]
/B        Exit the current batch script and set ERRORLEVEL to exitcode
Without this option, the controlling thread and any intermediate batch files are immediately exited, and the process return code is set to exitcode.
Scroll to Top