Command: echo

  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]

[Main menu] [top] (Syntax) [Options] [Comments] [Examples] [See also] [File]

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.

[Main menu] [top] [Syntax] (Options) [Comments] [Examples] [See also] [File]

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.

[Main menu] [top] [Syntax] [Options] (Comments) [Examples] [See also] [File]

Examples:

  IN A .BAT FILE / AUTOEXEC.BAT:
    ECHO Hi,
    ECHO. how are you?
    @ECHO Fine?
    @ECHO. Nice to hear this

[Main menu] [top] [Syntax] [Options] [Comments] (Examples) [See also] [File]

See also:

  autoexec.bat
  batch files

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] (See also) [File]

File:

  Please read this command's lsm file also.
  You will find the updated version (internet) here and
  the version described in this manual page here.
  The lsm file contains information about the name of the programmer,
  the download site, and some other command related information.

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] [See also] (File)


  Copyright © 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.