home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / batch / echo / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.6 KB  |  41 lines

  1. SAMPLE command              | Comments about the output
  2.  
  3.   ECHO                This command displays the current setting of
  4.                 ECHO, either ON or OFF.
  5.  
  6.   ECHO OFF            This command turns ECHO off. Subsequent 
  7.                 commands executed in the BATCH file or entered
  8.                 directly from the keyboard will not be shown
  9.                 on the screen until an ECHO ON command is
  10.                 executed or the BATCH file terminates.
  11.  
  12.   ECHO ON            This command turns ECHO on.
  13.  
  14.   ECHO message            This command will display message on the
  15.                 screen, whether echo is on or off.
  16.  
  17.   ECHO message > PRN        This command will write message to the printer
  18.                 rather than displaying it on the screen.
  19.  
  20.   :loop                This loop in a BATCH file will slowly fill
  21.    ECHO >> filler        up your disk with a string of "ECHO is off"
  22.    GOTO loop            messages. 
  23.  
  24.   ECHO.                On many versions of DOS, this command will
  25.                 display a blank line on the screen. ECHO: also
  26.                 usually works.
  27.  
  28.   @ECHO OFF            In DOS 3.3 and later, this command will turn
  29.                 ECHO off, without printing this command. This
  30.                 is useful if you want to have a "silent" batch
  31.                 file that does not echo ANY of the commands in
  32.                 it, including the one which turns ECHO off.
  33.  
  34.   ECHO OFF            Placing these two commands at the beginning of
  35.   ECHO $e[80D$e[A$e[K$e[A    a batch file will briefly flicker the words
  36.                 ECHO OFF on screen, but otherwise produce a
  37.                 "silent" batch file. The use of "$e[" in the
  38.                 second ECHO command is explained in the PROMPT
  39.                 ESCAPE_SEQUENCES topic. A line DEVICE=ANSI.SYS
  40.                 in the CONFIG.SYS file is also required.
  41.