Hello, I'm Lao Gai. First of all, thank you for watching this article. This article has videos, which are more detailed. You can also see the videos I released.
Today we will learn the echo command, which is often used in the bat batch script. This command is used to display information, or turn command echo on or off.In short, there are two uses.
The first is to directly output a string. For example, I output echo 1654651651651 so that the screen displays the string. This function is often used to prompt users or debug scripts.
The second usage is to close the subsequent commands and not display them in the batch processing window. For example, I enter the command echo off, so that the subsequent commands of the bat script will not be displayed in the batch processing window. I have prepared a test batch to test echo off, simply display the files and folders in the current directory, and then pause the window.
Double click to run the batch. The first line of the echo off command is displayed. The dir command and the pause command are not displayed in the batch window.
Here I change echo off to echo on, which is equivalent to displaying commands. The default batch window also displays commands. I change it to on for demonstration and comparison. Double click to run, and you can see that the dir command in the second line and the pause command in the third line are displayed in this batch window.
If you do not want to display echo off, you can add an @ symbol to the front of this command, so that the three lines of batch processing commands will not be displayed. This command is often used in batch processing, and you can try it.
Thanks for watching this article. I hope it will be helpful to you. This article was originally created by Lao Gai. I'm Lao Gai. I focus on sharing IT Internet and computer knowledge. Welcome to pay attention. This article is written for the purpose of helping people with love. Please share and reprint it freely. The more help people have, the greater the power of love will be. Thank you for the spread of positive energy.
All cracking patches, software, and other analysis articles released by Qiaoyuan.com are only for learning and research purposes;The above contents shall not be used for commercial or illegal purposes. Otherwise, the user shall bear all consequences.The information of this website comes from the network, and the copyright dispute has nothing to do with this website.You must completely delete the above content from your computer within 24 hours after downloading.If you like this program, please support genuine software, purchase and register, and get better genuine services.In case of infringement, please contact us by email.