Published on: 24th Nov 2011    |   Last Updated on: 24th Nov 2011

Rem Command :

It sets or records comments in a batch file or config.sys. It is most commonly used in Batch file programming.
It enables to include remarks of you in a batch file.

Syntax :

REM [comment]

Use 1:

p1.bat(Using @echo off)

@echo off
rem Created by: www.technoexam.com
rem Creation Date : 18-Nov-2011 09:21 AM
echo This is actual text !
ver
pause

Output :


This is actual text !
Microsoft Windows XP [Version 5.1.2600] Press any key to continue...
Use 2:

p2.bat (Without using @echo off)

rem Created by: www.technoexam.com
rem Creation Date : 18-Nov-2011 09:21 AM
echo This is actual text !
ver
pause

Output :


D:\ > rem Created by: www.technoexam.com
D:\ > rem Creation Date : 18-Nov-2011 09:21 AM
D:\ > echo This is actual text ! This is actual text !
D:\ > ver
Microsoft Windows XP [Version 5.1.2600]
D:\ > pause Press any key to continue...

Link this post on your Blog/Website :

Follow us on :   Technoexam on facebook Technoexam on twitter Technoexam on linkedin Technoexam on youtube