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.
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
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
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...
No comments:
Post a Comment