Command: echo (config.sys /fdconfig.sys command)
ECHO displays messages. There also exists a
BATCH FILE AUTOEXEC.BAT / FDAUTO.BAT COMMAND.COM ECHO version.
This ECHO is a CONFIG.SYS / FDCONFIG.SYS command.
Syntax:
ECHO [message]
Options:
message The message you want to be displayed to the user.
There are no other options at THIS ECHO command.
Comments:
ECHO displays (echos) its arguments to the console during CONFIG.SYS /
FDCONFIG.SYS processing when device drivers are loaded (when DEVICE=
lines are executed). There is NO break, so if you want to see it, you
should add a PAUSE command at the first line of AUTOEXEC.BAT/FDAUTO.BAT
or run F5 or F8 while booting.
ECHO is a command internal to kernel.sys and needs no other file
in order to work. There also exists a command.com ECHO command with
more options.
Examples:
IN CONFIG.SYS / FDCONFIG.SYS:
ECHO loading driver1
device=Driver1.sys
ECHO driver1 successfully loaded
IN AUTOEXEC.BAT / FDAUTO.BAT
ECHO blahblah (uses the command.com ECHO command!)
IN COMMAND LINE:
ECHO Hello world! > hello.txt (creates a file hello.txt and writes
"Hello world" into it.)
ECHO Hello world! >= hello.txt (also creates a file. COMPARING is
NOT allowed!)
ECHO Is %A% > = %B%? COMPARING A with B via ">=" is NOT
allowed!
See also:
F5
F8
autoexec.bat/fdauto.bat
batch files
config.sys/fdconfig.sys
echo (command.com command)
eecho
pause
Copyright © 2003 Robert Platt, updated 2008 and 2022 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.