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