The echo command in Windows
The echo command displays the message or turns on / off the command repeat feature. If used without parameters, the echo command will display the current echo setting.
The echo command displays the message or turns on / off the command repeat feature. If used without parameters, the echo command will display the current echo setting.
For an example of how to use this command, please see the example below.
Syntax echo command
echo [] echo [on | off]
Parameters
ParameterDescription [on | off] Enable or disable the repeat command feature. The repeat command is turned on by default. Specify text displayed on the screen. /? Show help at the command prompt.Note
- The Message echo is particularly useful when echo is disabled. To display a message that is only a few lines long without displaying any commands, you can include several echo messages after the command echo off in the batch program.
- When echo is disabled, the command prompt will not appear in the Command Prompt window. To display the command prompt, enter echo on.
- If used in a batch file, echo on and echo off does not affect the settings at the command prompt.
- To prevent repeating a specific command in a batch file, insert a (@) sign in front of the command.To prevent repeating all commands in a batch file, include the echo off command at the beginning of the file.
- To display the character (|) or navigation character () when you are using the echo command , use a caret (^) immediately before the straightforward character or redirect (eg: ^ | , ^> or ^ <).To display the caret, enter two consecutive quotes (^^).
For example
To display the current echo installation, enter:
echo
To loop a blank line on the screen, enter:
echo.
See more:
- Dcgpofix command in Windows
- Driverquery command in Windows
- The certutil command in Windows
4.7 ★ | 3 Vote