As we all know, if ECHO is followed by an environment variable, but this variable is empty, it is equivalent to echo without any parameters, that is, whether the current ECHO is on or off. The solution provided by many articles or tutorials is to add a dot echo after Echo, which will output blank lines.
Copy the Code as follows:
@ Echo off
Echo? Mon.tw %
: ECHO is off.
Echo .? Mon.tw %
Pause as far as I know, there are at least 10 methods to output empty rows Using echo:
Copy the Code as follows:
@ Echo off
Echo =
Echo,
Echo;
Echo +
Echo/
Echo [
Echo]
Echo:
Echo.
Echo \
Pause
These ten methods can be divided into three groups, with each group's efficiency decreasing in turn. Sadly, what those classic tutorials provide is echo in the group with the lowest efficiency.
This document is taken from: http://www.jb51.net/article/30987.htm
Empty line output of the ECHO command for Batch Processing