The echo command repeats typed text back to the screen and can send text to a peripheral on the computer, such as a COM port.
Availability
Note that echo means command echo, so when echo is on, every parsed command is, well, echoed before it is executed. You can avoid echo of a specific command when you precede it with @ – aschipfl May 27 '20 at 20:51. After echo is turned off, the command prompt doesn't appear in the Command Prompt window. To display the command prompt, type echo on. If used in a batch file, echo on and echo off don't affect the setting at the command prompt. To prevent echoing a particular command in a batch file, insert an @ sign in front of the command.


Echo is an internal command that is available in the following Microsoft operating systems.
Echo syntax
Displays messages, or turns command-echoing on or off.

When a batch file is being executed, if echo is turned on, it would print the command currently it’s running on to the command prompt. By default echo is turned on for any batch file. We can turn off echo by including the following line in the beginning of the file. In computing, echo is a command that outputs the strings it is being passed as arguments.It is a command available in various operating system shells and typically used in shell scripts and batch files to output status text to the screen or a computer file, or as a source part of a pipeline. Shutdown computer using notepad. N ow u can shutdown your computer using notepad and say bye. To tradition ways ( turn off) of closing your computer. Just Type:-@echo off msg. u r terminated shutdown -c “stop me if you can” -s. Save it as “turnoffurpc.bat”. Now see notepad will shutdown ur computer with lightning speed.!
Type ECHO without parameters to display the current echo setting.
Echo examples
Depending on whether your modem was on com1, this command would make the modem try responding and a squealing noise from the modem. To stop the squealing, type echo atz > com1.
This command would put in the file test.bat 'echo this is a test,' then whenever you type in test, it would type in echo this is a test.
The example above would echo 'this is an example' then using '>>' would append that text into the test.txt file.
This command would type on your screen, testing the echo string, and then take you back to the prompt.
Batch Files Examples


Additional information
Windows Batch Files @echo Off
- See our echo and append symbol for further information and related links on these terms.
