Echo command in Batch Processing

Source: Internet
Author: User
Tags echo command

1. Echo

Display the status of the current ECHO: echo on or echo off

2. Echo on

When the echo status is set to on, the command line is displayed, that is, the preceding c: \> similar flag is displayed ,:

3. Echo off

When the echo status is set to off, the command line is not displayed, that is, the preceding c: \> is similar. Like other functions, you can also enter commands, the command result can also be displayed ,:

4. Echo string

Display the input string on the CMD screen.

5. Echo string & Echo string...

To display multiple rows of data, as shown in:

6. Echo string> file path and file name

Write the string to the file. If data already exists in the file, it is automatically cleared before writing. :

(1)

(2)

(3)

7. Echo string> file path and file name

Write the string to the file. If the file already contains data, append the string to the end of the file. :

(1)

(2)

(3)

S

8. (echo string & Echo string…)> File Path and file name

Write multi-row data into the file (note that the brackets cannot be removed. If the brackets are removed, only the last one can be written, and the previous one will be output in the CMD window. If data already exists in the file, it is automatically cleared before being written.

9. (echo string & Echo string…)> Path and file name

Write multi-row data into the file (note that the brackets cannot be removed. If the brackets are removed, only the last one can be written, and the previous one will be output in the CMD window. If data already exists in the file, append the string to the end of the file.

10. (echo string)> file path and file name

Append the string to another line in the file. :

(1)

(2)

(3)

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.