Empty line output of the ECHO command for Batch Processing

Source: Internet
Author: User
Tags echo command

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.