The echo setting determines whether command echoing is on or off. This is what a sample program looks like with command echoing on (default):
C:\Windows\System32>echo Hello, World! Hello, World! C:\Windows\System32>where explorer C:\Windows\System32\explorer.exe C:\Windows\System32>exit
This is what it looks like with echo off:
Hello, World! C:\Windows\System32\explorer.exe
To get (display) the echo setting, use
echo with no parameters:
> echo ECHO is on.
To set the echo setting, use
> echo off > echo ECHO is off. > echo on > echo ECHO is on.
Note that with these examples, the prompt has been represented by
>. When changing the echo setting, the prompt will appear and disappear, but that makes for unclear examples.
Note that it is possible to prevent a command from being echoed even when echo is on, by placing an
@ character before the command.