ECHO
Type: Internal (2.0 and later)
Syntax:
ECHO on|off
ECHO (message)
Purpose: Turns on or off the display of commands in a batch
file. Can
also be used to display a message in a batch file.
Discussion
Normally, commands in a batch file are displayed as the batch file runs.
ECHO
OFF turns off this feature. ECHO ON turns the display feature back on.
If you enter the ECHO command with no options , the program will display
the
current ECHO setting.
For more information on using the ECHO command and other batch commands,
refer
to Chapter 5, Using Batch Files. A variety of
Examples
are
presented in that chapter and in Chapter 6, Tips for Advanced Users.
Example
If you want to display the message This is file one during the execution
of a
batch file, but you do not want to display the commands being acted upon,
enter
echo off
echo This is file one
Notice that you do not have to surround the message with quote marks as
is
required in BASIC and other programming languages.
Back to the
Easy DOS
Command Index