Command: rem (batch files)

  REM records comments (remarks) in a BATCH-FILE or CONFIG.SYS /
  FDCONFIG.SYS.
  REM is a BATCH-FILE / AUTOEXEC.BAT / FDAUTO.BAT command.

Syntax:

  REM [comment]
  ; [comment] (differences to REM!)

Options:

  comment   any comment you want to add to remember why you did
            this or that; can also be a command, which shall not
            be executed (maybe for test purposes).

Comments:

  FreeDOS ignores everything on a REM line.
  Use REM (remarks) to add explanatory notes to the CONFIG.SYS /
  FDCONFIG.SYS or in AUTOEXEC.BAT / FDAUTO.BAT or to disable lines
  there so that they won't run. This is very helpful for testing.
  While CONFIG.SYS / FDCONFIG.SYS supports both ";" and "REM" for
  commenting out, in a BATCH FILE or in AUTOEXEC.BAT / FDAUTO.BAT
  only "REM" works.
  REM is a command internal to command.com and needs no other file
  in order to work. REM also exists as CONFIG.SYS / FDCONFIG.SYS
  command.

Examples:

  IN CONFIG.SYS / FDCONFIG.SYS:
    REM DOS=HIGH,UMB  has the same effect!
    ;DOS=HIGH,UMB     has the same effect!

  IN A .BAT FILE / AUTOEXEC.BAT:
    REM Set the last drive letter available:
    lastdrive=z
    REM I don't want to use this driver any more:
    REM DEVICE=FOO.SYS
    ;         DOES NOT WORK IN A BAT / AUTOEXEC.BAT!

See also:

  ; (semicolon)
  autoexec.bat/fdauto.bat
  batch files
  command.com/freecom
  config.sys/fdconfig.sys
  lastdrive
  menu
  menucolor
  menudefault
  rem (config.sys/fdconfig.sys)

  Copyright © 2003 Robert Platt, updated 2007 and 2022 by W. Spiegl.

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