The innards of [] COMMAND.COM

A list of error messages, recognized names and commmands, etc, found within COMMAND.COM as text. This in effect gives you a list of "internal" command which are available. COMMAND.COM remains resident (normally) in lower memory, and waits for you to type something, that is, it waits for a command to process.

If the command is an internal instruction or an executable file name, COMMAND.COM processes the command or loads the file, and goes into the background. After completion, it returns to wait for the next command.



Microsoft(R) MS-DOS(R) Version 6.22 (C)Copyright Microsoft Corp 1981-1994.

COMMAND.COM /C command  /K command
drive:path    Specifies the directory containing COMMAND.COM file.
  device          Specifies the device to use for command input and output.
  /E:nnnnn        Sets the initial environment size to nnnnn bytes.
  /P              Makes the new Command Interpreter permanent (can't exit).
  /MSG            Stores all error messages in memory (requires /P).
  /Y              Steps through the batch program specified by /C or /K.
  /C command      Executes the specified command and returns.
  /K command      Executes the specified command and continues running.
The /P and /MSG switches may be used only when COMMAND is started by using
the SHELL command in the CONFIG.SYS file.

CHDIR
  ..   Specifies that you want to change to the parent directory.
Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.

CLS
Clears the screen.

COPY  source + source + ... destination
  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  destination  Specifies the directory and/or filename for the new file(s).
  /V           Verifies that new files are written correctly.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
The switch /Y may be preset in the COPYCMD environment variable.
To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).

CTTY device
  device   The terminal device you want to use, such as COM1.

DATE
Displays or sets the date.

DATE
  mm-dd-yy    Sets the date you specify.
Type DATE without parameters to display the current date setting and
a prompt for a new one.  Press ENTER to keep the same date.
Deletes one or more files.

ERASE
filename  Specifies the file(s) to delete.  Specify multiple
                          files by using wildcards.
  /P                      Prompts for confirmation before deleting each file.

DIR
Displays a list of files and subdirectories in a directory.

   Specifies drive, directory, and/or files to list.
  /P      Pauses after each screenful of information.
  /W      Uses wide list format.
  /A      Displays files with specified attributes.
  attribs   D  Directories   R  Read-only files         H  Hidden files
            S  System files  A  Files ready to archive  -  Prefix meaning "not"
  /O      List by files in sorted order.
  sortord   N  By name (alphabetic)       S  By size (smallest first)
            E  By extension (alphabetic)  D  By date & time (earliest first)
            G  Group directories first    -  Prefix to reverse order
            C  By compression ratio (smallest first)
  /S      Displays files in specified directory and all subdirectories.
  /B      Uses bare format (no heading information or summary).
  /L      Uses lowercase.
  /C      Displays file compression ratio; /CH uses host allocation unit size.
Switches may be preset in the DIRCMD environment variable.  Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
  /L      Uses lowercase.
Quits the COMMAND.COM program (command interpreter).
Creates a directory.

MKDIR
Displays or sets a search path for executable files.

PATH

PATH
Type PATH ; to clear all search-path settings and direct MS-DOS to search
only in the current directory.
Type PATH without parameters to display the current path.
Changes the MS-DOS command prompt.

PROMPT
  text    Specifies a new command prompt.
Prompt can be made up of normal characters and the following special codes:
  $Q   = (equal sign)
  $$   $ (dollar sign)
  $T   Current time
  $D   Current date
  $P   Current drive and path
  $V   MS-DOS version number
  $N   Current drive
  $G    (greater-than sign)
  $L    (less-than sign)
  $B
 (pipe)
  $H   Backspace (erases previous character)
  $E   Escape code (ASCII code 27)
   Carriage return and linefeed
LType PROMPT without parameters to reset the prompt to the default setting.
GRemoves (deletes) a directory.

RMDIR
Renames a file or files.

RENAME
filename1 filename2
Note that you cannot specify a new drive or path for your destination file.
Use MOVE to rename a directory, or to move files from one directory to another.
WDisplays, sets, or removes MS-DOS environment variables.
  variable  Specifies the environment-variable name.
  string    Specifies a series of characters to assign to the variable.
Type SET without parameters to display the current environment variables.
Displays or sets the time.

TIME
Type TIME without parameters to display the current time setting and
a prompt for a new one.  Press ENTER to keep the same time.
Displays the contents of a text file.

TYPE
Displays the MS-DOS version.
Tells MS-DOS whether to verify that your files are written correctly to a
disk.

VERIFY
Type VERIFY without a parameter to display the current VERIFY setting.
RDisplays the disk volume label and serial number, if they exist.
Calls one batch program from another.

CALL
batch-parameters   Specifies any command-line information required by the
                     batch program.
Records comments (remarks) in a batch file or CONFIG.SYS.
comment
Suspends processing of a batch program and displays the message "Press any
key to continue...."

PAUSE
Displays messages, or turns command-echoing on or off.

ECHO
Type ECHO without parameters to display the current echo setting.
GDirects MS-DOS to a labelled line in a batch program.

GOTO label
  label   Specifies a text string used in the batch program as a label.
You type a label on a line by itself, beginning with a colon.
Changes the position of replaceable parameters in a batch file.

SHIFT
Performs conditional processing in batch programs.

(IF)
 ERRORLEVEL number command
 string1==string2 command

 EXIST filename command

  NOT               Specifies that MS-DOS should carry out the command only
                    if the condition is false.
  ERRORLEVEL number Specifies a true condition if the last program run returned
                    an exit code equal to or greater than the number specified.
  command           Specifies the command to carry out if the condition is
                    met.
  string1==string2  Specifies a true condition if the specified text strings
                    match.
  EXIST filename    Specifies a true condition if the specified filename
                    exists.

Runs a specified command for each file in a set of files.

FOR %variable IN (set) DO command
command-parameters
  %variable  Specifies a replaceable parameter.
  (set)      Specifies a set of one or more files.  Wildcards may be used.
  command    Specifies the command to carry out for each file.
  command-parameters
             Specifies parameters or switches for the specified command.
To use the FOR command in a batch program, specify %%variable instead of
Loads a program into the upper memory area.

LOADHIGH
parameters

LOADHIGH
            Specifies the region(s) of memory into which to load
            the program.  Region1 specifies the number of the first
            memory region; minsize1 specifies the minimum size, if
            any, for region1.  Region2 and minsize2 specify the
            number and minimum size of the second region, if any.
            You can specify as many regions as you want.
/S          Shrinks a UMB to its minimum size while the program
            is loading.  /S is normally used only by MemMaker.
            Specifies the location and name of the program.
parameters  Specifies any command-line information required by
            the program.


[]
HOST: Outflux.net, http://www.Outflux.net
URL: http://jnocook.net/user/command.htm

14