Tuesday, April 23, 2013

Echo a new line in .BAT files

To echo an empty line in batch file, write dot character right after echo command (no space in between!):
@echo off
echo Next line is empty:
echo.
echo Press any key to continue...
Same result:
@echo off
echo Next line is empty: & echo.
echo Press any key to continue...
And in one line:
@echo off
echo Next line is empty: & echo. & echo Press any key to continue...

2 comments: