REM - Put a comment in a batch file
Purpose: Put a comment in a batch file.
Format: REM [comment ]
comment : The text to include in the batch file.
Usage
The REM command lets you place a remark or comment in a batch file.
Batch file comments are useful for documenting the purpose of a batch
file and the procedures you have used.
REM must be followed by a space or tab character and then your comment.
Comments can be up to 1023 characters long. CMD.EXE will normally
ignore everything on the line after the REM command, including quote
characters, redirection symbols, and other commands (see below for the
exception to this rule).
If ECHO is ON, the comment is displayed. Otherwise, it is ignored. If
ECHO is ON and you don't want to display the line, preface the REM
command with an at sign [@].
You can also place a comment in a batch file by starting the comment line
with two colons [::]. In essence this creates a batch file "label"
without a valid label name. Such comments are processed slightly faster
than those entered with REM, because they do not require the command
processor to handle a command.
You can use REM to create a zero-byte file if you use a redirection
symbol after the REM command. No text is permitted between the REM
command and the redirection symbol. For example, to create the zero-byte
file C:\FOO :
[c:\] rem > foo
(This capability is included for compatibility with CMD.EXE. A simpler
method for creating a zero-byte file with CMD.EXE is to use >filename as
a command, with no actual command before the [>] redirection character.)
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs