
 From CONFIG.SYS:

DEVICE=[d:][path]Cfg.Com CommandName [Options] [;CommandName [Options] [;...]]

 From the DOS command line or batch file:

[d:][path]Cfg CommandName [Options] [;CommandName [Options] [; ... ]]

Global Switches
---------------
 /Bn             Base switch.  You may select the desired number system base to
                 use.  Some commands specifically require decimal or
                 hexadecimal input.  The default number system is base 10.  The
                 "n" specifies the decimal number representing the new number
                 base.  Valid values for "n" are 2, 8, 10 and 16.  (Example:
                 /B16)

 /Dn             Divisor switch.  You may select an optional block size for
                 ErrorLevel reporting of commands.  The default block size is 1
                 unless a different default is given in the specific command
                 section.  This allows returning a valid ErrorLevel for a value
                 that is greater than 255.  The "n" specifies the decimal
                 number by which the result is divided.  Valid values for "n"
                 range from 1 to 65535.  (Example: /D8192)

/E[+][@][!][E]   Display the exit ErrorLevel.  The "+" option will display
                 extended ErrorLevel information including the command and
                 subcommand being executed.  The "@" option places the output
                 ErrorLevel in the environment variable "EL".  By default, this
                 will be in the master environment.  Use the /2 switch to place
                 it in the environment of a secondary command processor.  Use
                 the "!" option to specify which of the possible ErrorLevels to
                 return in MultiCommand.  Use the "E" option with "@" if you
                 want the basic ErrorLevel displayed with environment output.
                 The order of the options does not matter.

 /Q              Quiet switch.  Commands will not display character output if
                 this is used.  This switch may be used with the /@EnVar
                 switch, but has no effect on the /E and /E+ switch output or
                 error output.

 /1[A|B]         Use the primary or master environment.  This is the default
                 and overrides the /2 switch.  See the DOS Environment section
                 for an explanation of the "A" and "B" options for this switch.

 /2              Use the secondary or parent environment.

 /@[=]EnVar      Environment output switch.  Place ASCII result in the DOS
                 environment variable "EnVar".  No spaces are allowed between
                 the "@", the "=" (if used) and the environment variable name.
                 The rules for environment variables are the same as for the
                 DOS SET command except that mixed case is permitted for the
                 variable name by default.  The "=" option forces CFG to
                 capitalize "EnVar" to ensure compatibility with the DOS SET
                 command.  See the DOS Environment section for further details.
                 Each command that supports this switch is indicated below.
                 The variable name should be followed by at least one space to
                 prevent following command line text from being included in the
                 name.

 /,              Insert commas every three places in decimal numbers displayed
                 on the screen.

 /?              Display an abbreviated command summary.  Available from
                 command line only.  Not available in MultiCommand mode.

See the individual commands for additional switches.


      COMMANDS     Since version 2.30 - !: New, +: Changed/enhanced
--------------------------------------------------------------------

 +.B  Add [/@EnVar] [/Q] [/Bn] a b c ...                       Adds numbers "a", "b", "c", etc.
  .B  AM                                                       Confirm time between midnight and noon
 +.B  And [/@EnVar] [/Q] [/Bn] a b                             Returns logical AND of "a" and "b"
  CB  ANSI                                                     Determine if ANSI driver is installed
  .B  ASCII [/Bn] a b c ...                                    Convert numbers to ASCII characters
 !.B  Batch SubCommandName [/Q] [/@EnVar]                      Return info on running batch file
      --- SubCommands:  Call, Command, Drive, FullName, Name, Params, Path, Reset
  CB  Beep [m n [, m n] ... ] [/Bn] [/N]                       Beep the speaker
  CB  Blink                                                    Set blinking characters
  C.  Boot SubCommandName                                      Modify CONFIG.SYS in memory during execution
      --- SubCommand:  NoError
  CB  Border [Color]                                           Set screen border color
  .B  Break                                                    Determine status of DOS extended break checking
  .B  CanCopy FileSpec [d:]                                    Determine if room to copy files to target drive
 +CB  Cecho [/I|/K] [/C|/N] "Fore [on] Back" String            Echo text in color
  CB  Cls [Fore [on] Back]                                     Clear screen with foreground/background colors
  .B  CodePage [/Q] [/@EnVar]                                  Determine the current system Code Page
 +.B  ColdBoot SubCommandName [/V]                             Perform equivalent of power-on system reset
      --- SubCommands:  WaitFor, WaitTo, Verify
  CB  Color Fore [on] Back                                     Set ANSI driver output color
  .B  Cols                                                     Current displayed screen columns
 !CB  ComBaud n [/Q] [/@EnVar]                                 Return serial port baud rate
  C.  ComHide SubCommandName                                   Hide/restore the COM port base addresses
      --- SubCommands:  Hide, Restore
  .B  Compare [/C] String1 String2                             Compare two strings
 !CB  ComSet a [b]                                             Set COM port "a" base address to "b" (in hex)
  CB  ComSwap a b                                              Swap base addresses for COM ports "a" and "b"
  .B  Convert a b [/Bn]                                        Convert "a" to number base "b"
  .B  CoProc [/Q]                                              Determine Intel coprocessor installed (if any)
 +.B  Country [n] [/Q] [/@EnVar]                               Return country specific info
  .B  CPU                                                      Determine Intel microprocessor installed
  CB  Cursor {SubCommandName|a b}                              Set text mode cursor size
      --- SubCommands:  Default, Hide, Restore
  .B  Day [n]                                                  Day of month (EL=1-31)
  .B  DESQview                                                 Determine if DESQview is running
  CB  Device SubCommandName {Options}                          Device driver info
      --- SubCommands:  Exist DeviceName, List, Rename DeviceName1 DeviceName2
  .B  Dir [/Q] [/@EnVar] [Path]                                Current directory
  .B  DirExist [d:][path]DirectoryName                         Does directory exist
  .B  Display                                                  Display combination code
 +.B  Div [/@EnVar] [/Q] [/Bn] a b                             Divides "a" by "b"
  .B  DosKey [/I] [/M] [/@EnVar]                               Determine if DOSKEY installed or get input
  .B  DOSlocation SubCommandName                               Determine location of DOS kernel
      --- SubCommands:  RAM, ROM, High, Low
  .B  DOSmajor                                                 Major DOS version
  .B  DOSminor                                                 Minor DOS version
  .B  DOSstartup [/Q] [/@EnVar]                                Determines the drive DOS was booted from
  .B  DOSversion [/T]                                          Composite DOS version [EL=(32*major)+minor]
  .B  Drive [/Q] [/@EnVar]                                     Determine current default drive
 +.B  DriveExist d:                                            Determines valid DOS drives
 !.B  DriveID d: [/F|/P]                                       Identify the drive type
 +.B  DriveReady d:                                            Determine if a drive "d:" is ready for access
  .B  DriveSize [/Dn] [d:]                                     Amount of total space on drive
  .B  DriveSpace [/Dn] [d:]                                    Amount of free space on drive
 +.B  DriveVolume [d:]VolumeName                               Determine if volume exists on named drive
  .B  DS4                                                      Determine if Toshiba DeskStation IV present
  CB  Echo [/C|/N] [String]                                    Display String: ^ lower case toggle, ~ Cr/Lf
  CB  EchoPause [/C|/N] [String]                               Display String and pause, use Echo format
  CB  EGA25 [/C]                                               Set a 25 line EGA screen
 +CB  EGA43 [/C]                                               Set a 43 line EGA screen
 +.B  Env SubCommandName [/Dn] [/1] [/2]                       Examine/manipulate DOS environment
      --- ErrorLevel SubCommands:  Free, Strings, Total, Used
      --- String SubCommands:  Caps, Clear, Fill, Reset, Save [FileName], Set /@EnVar String
  .B  ErrorLevel n                                             Return "n" as an ErrorLevel
  .B  FileDir Filename [/Q] [/@EnVar]                          Directory of a file name
  .B  FileDrive Filename [/Q] [/@EnVar]                        Drive of a file name
 +.B  FileDTC [d:][path]File1 [d:][path]File2                  Compare date/time of files
  .B  FileExist Filename                                       Determine if a file exists
  .B  FileExt Filename [/Q] [/@EnVar]                          Extension of a file name
 !.B  FileLines [d:][path]Filename [/Dn]                       Counts lines in ASCII file
  .B  FileName Filename [/Q] [/@EnVar]                         Name portion of a file name
  .B  Files SubCommandName                                     Examine DOS System File Table
      --- SubCommands:  Blocks, Free, Margin, Orphan, Previous, Total, Used
  .B  FileSize [/Dn] [d:][path]Filename                        Size of specified file
 +.B  FileText [d:][path]Filename [/C] "String"                Find String in a file
  .B  FullYear                                                 Year, last two digits (EL=0-99)
 !.B  GamePort [/Q]                                            Test for game port installed
 +.B  GetKey [/C] [/F] [/S] ["String"] [Al] [Cl] [D[:]t,p] [E] [Fn] [Sn] [m]
                                                               Get keyboard input
 +.B  Help [String]                                            Display program help
  .B  Hour [n]                                                 Hour of day (EL=0-23)
  C.  IACAfill String [/O]                                     Store String in IACA
  .B  IACAread [/Q] [/@EnVar] [/C] [String]                    Write String, then IACA
  .B  Input [/Q] [/@EnVar]                                     Get a line of input
  CB  Intense                                                  Set intense background colors
 +.B  Keyboard                                                 Determine if an enhanced keyboard is present
 +.B  KeyBuffer SubCommandName                                 Adjust size of the DOS keyboard buffer
      --- SubCommands:  Set n, Status [/Dn]
  CB  KeyFlush                                                 Flush keyboard buffer
  CB  KeyPause                                                 Pause if Shift, Ctrl or Alt keys pressed
  .B  KeyPress                                                 Determine if keys are waiting in keyboard buffer
  CB  KeyStuff String                                          Inserts keys into the BIOS keyboard buffer
  .B  LastBoot                                                 Determine how the system was last booted
  .B  LastDrive [/Q] [/@EnVar]                                 Determine last available drive letter
 +.B  Left n String [/Q] [/@EnVar] [/C]                        Return left "n" characters of String
  .B  Length String [/Q] [/@EnVar]                             Return length of String
  CB  Locate r c                                               Position cursor on active video page row "r" column "c"
  .B  Lock [SubCommandName] [/C]                               Locks up system
      --- SubCommands:  Disk, Net, Stack, System
  .B  Lower String [/Q] [/@EnVar]                              Return String in lower case
  C.  LptHide SubCommandName                                   Hide/restore the LPT port base addresses
      --- SubCommands:  Hide, Restore
 !CB  LptSet a [b]                                             Set LPT port "a" base address to "b" (in hex)
 +CB  LptSwap a b                                              Swap base addresses for LPT ports "a" and "b"
  .B  MachineName [/Q] [/@EnVar]                               Determine the network machine name
  .B  Memory SubCommandName [k] [/Dn] [/Q] [/@EnVar]           Report system memory
      --- SubCommands:  Base, Extended, Expanded, High, Main, UMB
 +.B  Mid m n String [/Q] [/@EnVar] [/C]                       Return "n" char at "m" of String
  .B  Minute [n]                                               Minute of the hour (EL=0-59)
 +.B  Mod [/@EnVar] [/Q] [/Bn] a b                             Returns modulus of "a" by "b"
  CB  Mono                                                     Set a 25 line monochrome screen
  .B  Month [n]                                                Month of year (EL=1-12)
  .B  Mouse                                                    Determine type of mouse installed
 +.B  Mul [/@EnVar] [/Q] [/Bn] a b c ...                       Multiplies "a", "b", "c", etc.
 +.B  Not [/@EnVar] [/Q] [/Bn] a                               Returns inverse of a number
 +.B  Now DateFormat [/Q] [/@EnVar]                            Displays current date and time
 +.B  Or [/@EnVar] [/Q] [/Bn] a b                              Returns logical OR of two numbers
!+.B  P5 SubCommandName                                        P5 processor data
      --- SubCommands:  Model, Off, On, Step
  CB  Page [n]                                                 Display/change the video display page
  CB  Pause                                                    Pause with a prompt message
  .B  PM                                                       Confirm time between noon and midnight
  .B  Print                                                    Determine status of DOS PRINT.COM
 !CB  PrintEcho SubCommandName                                 Control DOS print echo
      --- SubCommands:  Off, On, Status, Toggle
  .B  Printer [n]                                              Determine printer status
  .B  Protected                                                Determine if processor is in protected mode
 +CB  PrtScr SubCommandName [/F]                               Control BIOS print screen function
      --- SubCommands:  Off, On, Print, Status, Toggle
  .B  RamDrive [/S] [d:] [/Q] [/@EnVar]                        Test if drive is a ramdrive
  .B  RandomFile [d:][path] [/Q] [/@EnVar] [/S]                Create random filename
  C.  Rem [String]                                             Provide REM statement for all DOS versions
  .B  RenDir OldName NewName                                   Rename directory
 +.B  Right n String [/Q] [/@EnVar] [/C]                       Return right "n" characters of String
  .B  ROMdate [/Q] [/@EnVar]                                   Display date of ROM BIOS
  .B  ROMmodel [/Q] [/@EnVar]                                  Display model bytes of the ROM BIOS
  .B  RootDir SubCommandName d: [/Q] [/@EnVar]                 Root directory characteristics
      --- SubCommands:  Free, Total, Used
  .B  Rows                                                     Current displayed screen rows
  .B  Second                                                   Second of minute (EL=0-59)
  .B  Share                                                    Determine if SHARE is loaded
  .B  Shift-AND [Alt] [Ctrl] [Shift]                           Keyboard shift state "AND" test
  .B  ShiftLock [SubCommandName]                               Determine status of keyboard lock states
      --- SubCommands:  Caps, Insert, Num, Scroll
  .B  Shift-OR [Alt] [Ctrl] [Shift]                            Keyboard shift state "OR" test
  .B  ShiftState                                               Determine keyboard shift states
  .B  Stacker [d:]                                             Identify Stacker driver and drives
 +.B  Sub [/@EnVar] [/Q] [/Bn] a b c ...                       Subtracts "b" from "a", "c" from "a", etc.
  .B  TaskSwitch [/Q] [/@EnVar]                                Determine if task switcher installed
 +CB  Toggle [N[+|-]] [C[+|-]] [S[+|-]] [/S]                   Set keyboard lock state
  CB  Tones SubCommandName                                     Rising and/or falling tones (Down/Up)
      --- SubCommands:  Down, Up, Over, Under
 +CB  Typematic r,d | SubCommandName                           Set the keyboard typematic rate and delay
      --- SubCommands:  Default, Fast, Slow
  .B  Upper String [/Q] [/@EnVar]                              Return String in upper case
  .B  Verify                                                   Current state of DOS Verify flag
  .B  Version SubCommandName                                   Return requested version
      --- SubCommands:  CFG, DOS, DPMI, EMS, VCPI, XMS
 +CB  VGA25 [/C]                                               Set a 25 line VGA screen
 +CB  VGA43 [/C]                                               Set a 43 line VGA screen
 +CB  VGA50 [/C]                                               Set a 50 line VGA screen
  .B  VideoMode [n]                                            Current video mode
 +CB  WaitFor [mm:]ss [/N]                                     Delay for specified time
  CB  WaitTo hh:mm[:ss] [/N]                                   Delay until specified time of day
 +.B  WarmBoot SubCommandName [/V]                             Perform keyboard system reset
      --- SubCommands:  WaitFor, WaitTo, Verify
  .B  WeekDay [n]                                              Day of week (EL=0-6, 0=Sunday)
  CB  Window r c w h [b ["Fore [on] Back"]]                    Draw a window on screen
  .B  Windows                                                  Determine if Windows is running
 +.B  Xor [/@EnVar] [/Q] [/Bn] a b                             Returns logical XOR of "a" and "b"
  .B  Year                                                     Years since 1980 (EL=0-119)
  .B  ZeroFile [/T] Filename                                   Create/truncate file to zero bytes

                          ***  End of CFG.HLP file  ***

