home *** CD-ROM | disk | FTP | other *** search
/ The CIA World Factbook 1992 / k3bimage.iso / sel / 12 / 0081 / test.bat < prev   
Encoding:
DOS Batch File  |  1991-12-02  |  1.2 KB  |  35 lines

  1. CLS
  2. ECHO  You saw no "ECHO OFF" command in this batch file when it began to execute...
  3. ECHO  Now, I'm going to turn ON the echo so that you can see what's goign on, and
  4. ECHO  that is that this same TEST.BAT file is going to be typed to the screen.
  5. ECHO  
  6. ECHO  Please, press any key when you are ready....
  7. PAUSE >NUL
  8. ECHO  
  9. ECHO  
  10. ECHO ECHO ON
  11. REM
  12. REM
  13.                TYPE TEST.BAT
  14. REM  
  15. PAUSE
  16. REM  
  17. ECHO OFF
  18. CLS
  19. ECHO  
  20. ECHO  The echo has now been turned off again, and the next line should be blank.
  21. ECHO  
  22. ECHO  It is blank, isn't it?
  23. ECHO  
  24. PAUSE
  25. CLS
  26. ECHO  With the patch you just applied, you don't have to type "ECHO OFF" and "CLS"
  27. ECHO  as your first two batch commands, because the ECHO now DEFAULTS to OFF when
  28. ECHO  batch files are executed.  Also, to leave a blank line in a batch file, all
  29. ECHO  you do is type "ECHO", then type two blank spaces, and press Enter, just 
  30. ECHO  like you did through DOS 3.00.
  31. ECHO    
  32. ECHO  Beginning with the unpatched DOS 3.10, the command "ECHO" followed only by
  33. ECHO  blank spaces was intepreted as an inquiry as to the status of the echo, and
  34. ECHO  DOS responded with "ECHO is on" or "ECHO is off".  Not any more...!
  35.