Quits the the operating system command interpreter (COMMAND.COM or CMD.EXE) and returns to the program that started the command interpreter, if one exists.
EXIT [/B] [exitcode]
When you use the the operating system COMMAND or CMD or command to start a new instance of the command interpreter, you can use the EXIT command to return to the old command interpreter. Also, while running some programs, you can run the the operating system command interpreter and then use the EXIT command to return to your program. For more information about command interpreters.
If you are not using the /P (permanent) switch with the initial copy of COMMAND.COM, the EXIT command quits the command interpreter. You must then specify at the command prompt the location of the COMMAND.COM file to start the command interpreter again.
If you start the COMMAND.COM program with the /P (permanent) switch, the EXIT command has no effect.