oem.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.
COMMAND--Examples
Syntax  Notes
────────────────────────────────────────────────────────────────────────────
 
                             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
 
                                      ♦