How to add comments in a batch file

The keyword REM (short for remarks) is used to add comments in batch file. Following are some examples of comments:

rem This batch file provides an example 

rem to add comments in batch file.

rem the keyword rem must be followed by a space to work correctly.

rem

rem Clear the screen in following statement.

cls