Command: command.com (or FreeCom)

  COMMAND starts a new copy of the FreeDOS command shell.

Syntax:

  COMMAND [[drive:]path] [device] [/E:nnnnn] [/L:nnnn] [/U:nnn] [/P]
          [/MSG] [/LOW] [/Y [/[C|K] command]]
  COMMAND [/?]
  [drive:]path  The drive and path where the shell is to look for the
                transient part of COMMAND.COM. This is usually only
                needed to set the COMSPEC,
                e.g. C:\FREEDOS\BIN\
  drive         The drive letter, e.g. C:
  path          The directory, e.g. \FREEDOS\BIN\
  device        Specifies the device to use for command input
                and output.

Options:

  /e:nnnnn   The environment size, in bytes, in the range 160-32768.
             This number will be rounded up the nearest 16 bytes.
             The default is 256.
  /L:nnnn    Specifies internal buffers length (requires /P as well).
             (nnnn should be between 128 and 1,024.)
  /U:nnn     Specifies the input buffer length (requires /P as well).
             (nnn should be between 128 and 255.)
  /P         Makes the shell permanent, so the EXIT command does
             not exit the shell.
  /MSG       Stores all error messages in memory (requires /P as well).
  /LOW       Forces the command shell to keep its resident data in
             low memory.
  /Y         Steps through the batch program specified by /C or /K
  /C string  Executes the command in {string}, then exits.
  /K string  Executes the command in {string}and continues running.
  /?         Shows the help

Comments:

  Command (command.com) is also named FreeCom. It contains a lot of
  internal commands which need no other file in order to work. You can
  find the list of internal commands here or by typing "?" in
  command line.
  For more information see Appendix to the Description of Features and
  Implementation Status of FreeCOM. OR:
  https://github.com/FDOS/freecom/tree/master/docs/html/commands OR:
  https://gitlab.com/FreeDOS/base/freecom/-/tree/master/SOURCE/FREECOM/
  docs/html/commands.

Examples:

  In CONFIG.SYS / FDCONFIG.SYS or in command line:
  SHELL=C:\FREEDOS\BIN\COMMAND.COM C:\FREEDOS\BIN /E:1024 /P=C:\FDAUTO.BAT
  OR:
  C:\COMMAND /E:1024 /L:1024 /U:128 /P OR:
  COMMAND /?

See also:

  Appendix
  autoexec.bat/fdauto.bat
  batch files
  comspec
  config.sys/fdconfig.sys
  exit
  kernel
  list of internal commands
  shell/shellhigh
  syntax

  Copyright © 2004 Robert Platt, updated 2025 by W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.