The purpose of this command is to turn on or off the display of commands in a batch file. Can also be used to display a message in a batch file. The Syntax of this command is
ECHO onloff
ECHO (message)
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
Note that you do not have to surround the message with quote marks as is required in BASIC and other programming languages.




Reply With Quote
Copyright Techfuels
Bookmarks