Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rem(CMD) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 rem(CMD)                        19 June 1992                        rem(CMD)


 Name

    rem - enable you to include comments in a batch file or your CONFIG.SYS
    file

 Syntax


    rem [comment]


 Description

    MS-DOS ignores any batch command or CONFIG.SYS line that begins with rem.

 Parameter


    comment   Specifies any string of characters you want to include as a
              comment.


 Notes


    Using the echo command to display comments

    The rem command does not display comments on the screen.  You must use
    the echo on command in your batch or CONFIG.SYS file in order to display
    comments on the screen.

    Restrictions on batch-file comments

    You cannot use a redirection character (> or <) or pipe (|) in a batch-
    file comment.

    Using rem to add vertical spacing

    Although you can use rem without a comment to add vertical spacing to a
    batch file, you can also use blank lines.  MS-DOS ignores the blank lines
    when processing the batch program.

 Examples

    The following example shows a batch file that uses remarks for both
    explanations and vertical spacing:

       @@echo off
       rem  This batch program formats and checks new disks.
       rem  It is named CHECKNEW.BAT.
       rem
       echo Insert new disk in drive B.
       pause
       format b: /v
       chkdsk b:


    Suppose you want to include in your CONFIG.SYS file an explanatory com-
    ment before the country command.  To do this, add the following lines to
    CONFIG.SYS:

       rem Set country code to France
       country=033


 Related command

    For information about displaying messages, see the echo(CMD) command.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026