6 replies
by jay Accepted solution
by p.j.hutchison Accepted solution
by rob miners Accepted solution
Syntax:
EXIT
Purpose: Exits a secondary command processor.
Discussion
This command can be used when you are running an application program and want to start the DOS command processor, then return to your program. For example, to look at a directory on drive B while running an application program, you must start the command processor by typing COMMAND in response to the default drive prompt. You can now type the DIR command and DOS will display the directory for the default disk. When you type EXIT, you return to the previous level (your application program).
Example
If you start a new command processor by entering
command /c
then you can return to the previous command processor by entering
exit
It really depends on the type of batch file that you are running as to whether it will automatically exit when the commands have been completed. If you run cmd and open a window when you type in exit it will end the session.
Terminating a session will close it as well.
If you are using the goto syntax it is wise to direct it to :END to close the session.
Keep us informed as to your progress if you require further assistance.
If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as Helpful so that others may benefit from the outcome. ;) :D
by jay Accepted solution
by older mycroft Accepted solution
by rob miners Accepted solution
the session. You can CTRL+C to stop the batch process or close the window.
Keep us informed as to your progress if you require further assistance.
If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as Helpful so that others may benefit from the outcome. ;) :D
This discussion is closed to new replies.
Trending Software posts
Sort by Trending