command-echoing feature on or off, or displays a message.
Used without parameters, echo displays the current
Specifies whether to turn the
command-echoing feature on or off.
Specifies text you want to display on the
Displays help at the command prompt.
- The echo
message command is useful when echo is turned
off. To display a message that is several lines long
without displaying other commands, you can include
several echo message commands after the
echo off command in your batch program.
- If you use
echo off, the command prompt does not appear
on your screen. To display the command prompt, type
- To prevent
echoing of a line, insert an at sign (@) in front of a
command in a batch program.
- To echo a blank
line on the screen, type:
- To display a
pipe (|) or redirection character (< or >) when you are
using echo, use a caret character immediately
before the pipe or redirection character (for example,
^>, ^<, or ^|). If you need to use the caret character
(^), type two (^^).
example is a batch program that includes a three-line
message preceded by and then followed by a blank line:
echo This batch program
echo formats and checks
echo new disks
If you want to turn
echo off and you do not want to echo the echo
command, type an at sign (@) before the command as follows:
You can use the
if and echo commands on the same command line.
if exist *.rpt
echo The report has arrived.