,
I i
~
-
-"
! '
l .
ECHO
Chapter 6 / Command Reference
Internal
)'
ECHO
[switch]
[message]
Turns
the
batch ECHO feature
on
or
off.
Also lets you use mes-
I sages while
the
batch files
are
executing.
~
- I
Parameters
switch can be
ON
or OFF.
ON
tells MS-DOS to display batch file
commands.
OFF
tells
MS-DOS
not
to
display
batch
file
commands.
message is
text
the
screen displays when ECHO is encountered.
I :
l '
n
i 1
:-'
! I
I I
; (
i ;
,
Notes
and
Suggestions
•
If
you
do
not specify a switch or message, MS-DOS displays
the
current
setting
of ECHO.
• Normally,
the
screen displays (echoes) commands in a batch
file
as
you
run
the
file. ECHO OFF
turns
off
this
feature.
ECHO
ON
turns
it
on
again. (Note: ECHO is automatically
restored to its previous
setting
after a batch file executes.)
• ECHO
message displays the specified message, regardless of
whether ECHO is
on
or
off.
• Specifying ECHO OFF
at
the
MS-DOS prompt
turns
off the
system prompt.
• Use ECHO OFF when you
do
not want to clutter
the
screen
with
unnecessary information.
•
You
can
turn
off ECHO and
insert
your own messages to be
displayed while a batch file is executing.
75