Computer and Software Support


DOS Command 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.

 

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.

This page is from http://www.easydos.com. I pasted it on my website to avoid possible broken links. For further help with DOS commands, Check easydos.com out.