REM

Updated: 04/26/2017 by Computer Hope

Short for Remark, REM is a statement that can be placed in system files such as the autoexec.bat or config.sys by placing "REM" (followed by a space) in front of a line. Doing this would remark the line and not show the line if echo is off.

@echo off
REM Example line that will not be seen with echo off.
Echo Hello World!

In the example above the first line would be skipped and the batch file would just echo "Hello World!" to the screen.

Alternatively, you can also place two colons (::) in front of a line to remark a line in a batch file. With two colons the line will not show regardless if echo off is in the batch file.

::This line is never seen
Echo Hello World!

Related pages

Comment, Nonexecutable statement, Programming terms