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.
Shell Escape (Description)
◄Summary► ◄Example► ◄Notes► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The Shell Escape (!) command allows you to exit from the CodeView
debugger to a DOS or OS/2 shell. You can execute DOS or OS/2
commands or programs from within the debugger, or you can exit
from CodeView to DOS or OS/2 while retaining your current
debugging context.
If you want to exit to DOS or OS/2 and execute several commands or
programs, enter the Shell Escape command with no arguments (!).
After the DOS or OS/2 screen appears, you can run internal system
commands or programs. When you are ready to return to CodeView,
type the command 'exit' (in any combination of uppercase and
lowercase letters). The debugging screen appears with the same
status it had when you left it.
If you want to execute a program or an internal system command
from within CodeView, enter the Shell Escape command followed by
the name of the command or program you want to execute, as in
!command
The output screen appears, and CodeView executes the command or
program. When the output from the command or program is finished,
the message
Press any key to continue.
appears at the bottom of the screen. Press a key to make the
debugging screen reappear with the same status it had when you
left it.
The Shell Escape command works by saving the current processes
in memory and then executing a second copy of COMMAND.COM or
CMD.EXE.
See: ◄File Menu: DOS (or OS/2) Shell Command►
-♦-