The description below is from the book
DOS the Easy Way by Everett Murdock Ph.D.

CLICK HERE for information about downloading the book.

Type: Internal (2.0 and later)


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.


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 ECHO and other batch commands, see Chapter 5, Using Batch Files, in the downloadable book DOS the Easy Way . A variety of examples are presented in that chapter and in Chapter 6, Tips for Advanced Users.


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.

For more information about this command, refer to the downloadable book DOS the Easy Way.

Copyright 1985 - 2008 by Everett Murdock

Back to the Easy DOS Command Index