|
ECHO
Turns the command-echoing feature on or off, or displays a
message.
Syntax
ECHO [ON | OFF]
ECHO [message]
Key
ON : Display each line of the batch on screen (default).
OFF : Only display the command output on screen.
message : a string of characters to display.
Used without parameters, echo displays the current echo setting.
In a batch file, the @ symbol is the same as ECHO OFF
applied to the current line only.
To echo a blank line on the screen, type:
echo.
Examples
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:
@echo off
You can use the if and echo commands on the same command
line. For example:
if exist *.rpt echo The report has arrived.
Cmd Commands
|