Command: echo (command.com command)
ECHO displays messages, or turns command-echoing on or off.
There also exists a CONFIG.SYS / FDCONFIG.SYS ECHO command.
ECHO is a BATCH-FILE / AUTOEXEC.BAT command.
It can also be used in command line.
Syntax:
ECHO [ON | OFF]
ECHO [message]
Options:
ON ECHO mode is activated. If you use ECHO within a batch
file, each command line is shown when it is executed.
OFF ECHO mode is deactivated. If you use ECHO within a batch
file, the command line is not shown when it is executed.
This does not affect the output of the command itself.
message The message you want to print on the screen.
Comments:
Commands can also be suppressed by beginning them with the @ symbol.
Type ECHO without parameters to display the current ECHO setting.
ECHO can also be used outside a batch file.
ECHO is a command internal to command.com and needs no other file
in order to work. There also exists a CONFIG.SYS / FDCONFIG.SYS
ECHO command with different options.
Examples:
IN A .BAT FILE / AUTOEXEC.BAT:
ECHO Hi,
ECHO. how are you?
@ECHO Fine?
@ECHO. Nice to hear this
See also:
autoexec.bat
batch files
echo (config.sys command)
------------------------------------------------------------------------------
Copyright (C) 2003 Robert Platt, updated 2007 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.