‘echo’ command display messages, or turns command-echoing
on or off.
Syntax
ECHO [ON | OFF]
ECHO [message]
By default, echo is on. You can test this by executing
echo command in command prompt.
C:\>echo
ECHO is on.
Why do we require
‘echo off’?
Hello.bat
ver
vol
cd
When you ran Hello.bat file, it prints the commands names
also in the output.
You can display the output without command names using
echo off command.
Hello.bat
@echo off ver vol cd
No comments:
Post a Comment