echo command text in batch processing

Source: Internet
Author: User
Tags echo command

echo command text in batch processing

1. Echo

Displays the status of the current echo: echo on or Echo OFF

2. ECHO on

Setting the Echo status to on will display the command line, which is similar to the previous c:\> flag:

3. ECHO OFF

Setting the Echo status to OFF will not show the command line, which is similar to the previous C:\> flag, as well as other functions, the user can also enter commands, or display command results:

4. ECHO string

Displays the input string on the cmd screen.

5. ECHO string &echo string ...

Used to display multiple rows of data, if shown:

6. ECHO string > file path and filename

Writes a string to the file, and if the file already has data, it will be automatically emptied before writing. :

(1)

(2)

(3)

7. ECHO string >> file path and filename

Writes a string to the file, appending the string to the end of the file if there is already data in the file. :

(1)

(2)

(3)

S

8. (ECHO string &echo string ...) > File path and filename

Write multiple lines of data to the file (note that parentheses cannot be removed, and if the brackets are removed, then only the last one is written, and the preceding output is in the cmd window.) If there is already data in the file, it will be automatically emptied before writing.

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

Write multiple lines of data to the file (note that parentheses cannot be removed, and if the brackets are removed, then only the last one is written, and the preceding output is in the cmd window.) If there is already data in the file, append the string to the end of the file.

Ten. (ECHO string) >> file path and filename

Appends a string to another line in the file. :

(1)

(2)

(3)

echo command text in 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.