COMMAND--Examples
The following command specifies that the MS-DOS command interpreter is to
start a new command interpreter from the current program, run a batch
program named MYBAT.BAT, and then return to the first command interpreter:
command /c mybat.bat
The following CONFIG.SYS command specifies that COMMAND.COM is located in
the DOS directory on drive C:
shell=c:\dos\command.com c:\dos\ /e:1024
This command directs MS-DOS to set the COMSPEC environment variable to
C:\DOS\COMMAND.COM. This command also creates an environment of 1024 bytes
for this command interpreter.
The following command starts an instance of COMMAND.COM and runs the
MYBATCH.BAT file, stepping through the file command by command:
command /y /c mybatch.bat
Under construction:
ECHO EXIT|%COMSPEC%/kPROMPT;echo.$d$g%%%%temp%%%%.\$$$_:>CON
@echo off > %TEMP%.\$.BAT
ECHO EXIT|%COMSPEC%/kPROMPT e0'SET X='d a$_rcx$_6$_w0$_q|DEBUG %TEMP%.\$.BAT
|