help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
REM--Examples
Syntax  Notes
────────────────────────────────────────────────────────────────────────────
 
                               REM──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 comment
before the COUNTRY command. To do this, add the following lines to
CONFIG.SYS:
 
    rem Set country code to France
    country=033
 
The following example shows a DEVICE command that has been disabled by using
a semicolon (;) instead of the REM command:
 
    ;device=c:\dos\ramdrive.sys
 
                                      ♦