home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / grabbers / grabb394 / info.bat < prev    next >
DOS Batch File  |  1992-02-04  |  4KB  |  99 lines

  1. echo off
  2. cls
  3. if not exist grabber.doc goto :err
  4. if not exist grtxt.doc goto :err
  5. if exist convert.doc goto :msg
  6. :err
  7. echo  
  8. echo Error:  Cannot locate all of the documentation files (GRABBER.DOC,
  9. echo         GRTXT.DOC and CONVERT.DOC) in the current directory.  Some or
  10. echo         all of these files are not present.  Please change to the
  11. echo         drive and directory which contains your GRABBER distribution
  12. echo         files, then run this INFO.BAT again.
  13. echo  
  14. goto :exit
  15. :msg
  16. echo This batch file will print out the complete documentation for the GRABBER
  17. echo package.  The following files will be printed:
  18. echo  
  19. echo  *  GRABBER.DOC  (37 pages)  --  for GRABBER.EXE, GRHOTKEY.EXE, and CHKVBE.EXE
  20. echo  *  GRTXT.DOC    (5 pages)   --  for GRTXT.EXE and GRTXTKEY.EXE
  21. echo  *  CONVERT.DOC  (11 pages)  --  for GR2PCX.EXE, GR2GIF.EXE, GR2ASCII.EXE
  22. echo                                       and GR2ANSI.EXE
  23. echo  
  24. echo Each of these .DOC files is pre-formatted for printing on regular 8-1/2
  25. echo by 11-inch paper, 60 or 66 lines per page.  If you don't want to print these
  26. echo files now, press [Ctrl-C] and then press [Y].  Otherwise, you may let this
  27. echo batch file print them for you.  Simply do this:
  28. echo  
  29. echo        1. Turn your printer on
  30. echo        2. Adjust the left margin to zero or 1
  31. echo        3. Adjust the top line to the very top of the page
  32. echo  
  33. :chk1
  34. if %1zap==zap goto :lpt1
  35. if %1==lpt1 goto :lpt1
  36. if not %1==LPT1 goto :chk2
  37. :lpt1
  38. set pr$=lpt1
  39. echo     ┌─────────────────────────────────────────────────────────────────┐
  40. echo     │ By the way, I am about to print to the printer which is con-    │
  41. echo     │ nected to your LPT1 port.  If you want to print to LPT2 or LPT3 │
  42. echo     │ instead, abort now and re-enter "INFO LPT2" or "INFO LPT3".     │
  43. echo     └─────────────────────────────────────────────────────────────────┘
  44. echo  
  45. goto :msg2
  46. :chk2
  47. if %1==lpt2 goto :lpt2
  48. if not %1==LPT2 goto :chk3
  49. :lpt2
  50. set pr$=lpt2
  51. echo     ┌─────────────────────────────────────────────────────────────────┐
  52. echo     │ By the way, I am about to print to the printer which is con-    │
  53. echo     │ nected to your LPT2 port.  If you want to print to LPT1 or LPT3 │
  54. echo     │ instead, abort now and re-enter "INFO LPT1" or "INFO LPT3".     │
  55. echo     └─────────────────────────────────────────────────────────────────┘
  56. echo  
  57. goto :msg2
  58. :chk3
  59. if %1==lpt3 goto :lpt3
  60. if not %1==LPT3 goto :lpt1
  61. :lpt3
  62. set pr$=lpt3
  63. echo     ┌─────────────────────────────────────────────────────────────────┐
  64. echo     │ By the way, I am about to print to the printer which is con-    │
  65. echo     │ nected to your LPT3 port.  If you want to print to LPT1 or LPT2 │
  66. echo     │ instead, abort now and re-enter "INFO LPT1" or "INFO LPT2".     │
  67. echo     └─────────────────────────────────────────────────────────────────┘
  68. echo  
  69. :msg2
  70. echo        4. Press any key when ready to print, or type Ctrl-C now to abort...
  71. pause > nul
  72. cls
  73. echo  
  74. echo     ┌──────────────────────────────────────────────────────────────┐
  75. echo     │ Printing GRABBER.DOC (37 pages).  Press [Ctrl-C] to abort... │
  76. echo     └──────────────────────────────────────────────────────────────┘
  77. if not exist jerrymsg.txt goto :docs
  78. type jerrymsg.txt > %pr$%
  79. :docs
  80. type grabber.doc > %pr$%
  81. echo  
  82. echo     ┌──────────────────────────────────────────────────────────────┐
  83. echo     │ Printing GRTXT.DOC (5 pages).  Press [Ctrl-C] to abort...    │
  84. echo     └──────────────────────────────────────────────────────────────┘
  85. type grtxt.doc > %pr$%
  86. echo  
  87. echo     ┌──────────────────────────────────────────────────────────────┐
  88. echo     │ Printing CONVERT.DOC (11 pages).  Press [Ctrl-C] to abort... │
  89. echo     └──────────────────────────────────────────────────────────────┘
  90. type convert.doc > %pr$%
  91. if not exist order.frm goto :bye
  92. type order.frm > %pr$%
  93. :bye
  94. echo  
  95. echo   Done.
  96. echo  
  97. :exit
  98. set pr$=
  99.