help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
EXIT--Notes
Syntax
────────────────────────────────────────────────────────────────────────────
 
                                EXIT──Notes
 
Using exit with the command interpreter
 
When you use the MS-DOS COMMAND 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
MS-DOS command interpreter and then use the EXIT command to return to your
program. For more information about command interpreters, see the <COMMAND>
command.
 
If you are not using the /P (permanent) switch with the inital 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.
 
Using exit when the command program is loaded as permanent
 
If you start the COMMAND.COM program with the /P (permanent) switch, the
EXIT command has no effect.
 
                                      ♦