• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

REM: The Simplest Batch File Command

REM: The Simplest Batch File Command

The first of the batch-file-specific commands is REM (which stands for remark). This simple command tells Command Prompt to ignore everything else on the current line. Batch file mavens use it almost exclusively to add short comments to their files:

REM This batch file changes to the Windows Vista
REM folder and starts CHKDSK in automatic mode.
CD %SystemRoot%
CHKDSK /F


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint