home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / xset400.zip / README.BAT < prev    next >
DOS Batch File  |  1993-12-21  |  1KB  |  54 lines

  1. @echo off
  2.  
  3. if not exist XSET.EXE goto NOTFOUND
  4. if not exist XSET.DOC goto NOTFOUND
  5. goto begin                         
  6.  
  7. :NOTFOUND
  8. echo:
  9. echo  Error: you must be in the directory containing XSET.EXE and XSET.DOC
  10. echo:
  11. pause
  12. goto end
  13.  
  14. :begin
  15. echo:
  16. echo  Do you want to see the documentation on the screen
  17. echo           or to print it onto the printer ?
  18.  
  19. XSET/COLOR HIGHLIGHT/PROMPT " Hit S for screen, P for printer"/UPPER _k KEY "SP"
  20. echo:
  21. goto %_k%
  22.  
  23. :S  screen 
  24. more < xset.doc
  25. goto end
  26.  
  27. :P  printer
  28.  
  29. echo  Please choose printer:   P  prn
  30. echo                           1  lpt1
  31. echo                           2  lpt2
  32. echo                           3  lpt3
  33. echo                           4  lpt4
  34. echo                           O  other
  35. XSET/UPPER _k KEY "P1234O"
  36. if "%_k%" == "O" goto input
  37. set _k=lpt%_k%
  38. if "%_k%" == "lptP" set _k=prn
  39.  
  40. :print                 
  41. copy xset.doc %_k% > nul
  42. goto end
  43.  
  44. :input
  45. set _k=lpt1
  46. XSET/COLOR HIGHLIGHT/DEFAULT/PROMPT " Choose printer: " _k
  47. echo:                
  48. if not "%_k%" == "" goto print
  49.  
  50. :end
  51. set _k=
  52.  
  53. echo     Run the batch file DEMO.BAT to have an example of the power of XSET.
  54.