home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / comm / pf.zip / PRINTDOC.BAT < prev    next >
DOS Batch File  |  1990-09-03  |  10KB  |  180 lines

  1. @echo off
  2. rem 
  3. rem +-------------------------------------------+
  4. rem !   Port Finder PRINT DOCUMENT Batch File   !
  5. rem !   Copyright (c) 1990 mcTRONic Systems     !
  6. rem !   Revised on: August 7, 1990              !
  7. rem !   File Name: PRINTDOC.BAT                 !
  8. rem +-------------------------------------------+
  9. rem 
  10. if not exist bh.com goto :error
  11. bh ^
  12. if errorlevel 1 goto :start
  13. goto :error
  14. :start
  15. cls
  16. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  17. echo    ║                                                                       ║
  18. echo    ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  19. echo    ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  20. echo    ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  21. echo    ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  22. echo    ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  23. echo    ║                                                                       ║
  24. echo    ║           The Number ONE Shareware COM and LPT Port Utility           ║
  25. echo    ║                                                                       ║
  26. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  27. echo    ║                                                                       ║
  28. echo    ║    1) Display or Print PF.DOC, Port Finder Documentation              ║
  29. echo    ║    2) Display or Print PFREVIEW.DOC, Port Finder Reviews              ║
  30. echo    ║    3) Display or Print PROBLEM.DOC, Port Finder Problem Report        ║
  31. echo    ║    4) Display or Print REGISTER.DOC, Port Finder Registration Form    ║
  32. if exist INSTALL.BAT echo    ║    5) Run the Port Finder Hard Disk INSTALL Program                   ║
  33. echo    ║                                                                       ║
  34. echo    ║    Q) Quit Print Program, Exit to DOS                                 ║
  35. echo    ║                                                                       ║
  36. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  37. if exist INSTALL.BAT bh 12345Q
  38. if NOT exist INSTALL.BAT bh 1234Q
  39. CLS
  40. if errorlevel 6 goto end
  41. if exist INSTALL.BAT if errorlevel 5 INSTALL
  42. if NOT exist INSTALL.BAT if errorlevel 5 goto end
  43. if errorlevel 4 goto 4prtred
  44. if errorlevel 3 goto 3prtred
  45. if errorlevel 2 goto 2prtred
  46. if errorlevel 1 goto 1prtred
  47. if errorlevel 0 goto end
  48. :1prtred
  49. if not exist pf.doc echo PF.DOC file NOT found!
  50. if not exist pf.doc pause
  51. if not exist pf.doc goto start
  52. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  53. echo    ║                                                                       ║
  54. echo    ║            1) Display PF.DOC, Port Finder Documentation               ║
  55. echo    ║            2) Print PF.DOC, Port Finder Documentation                 ║
  56. echo    ║                                                                       ║
  57. echo    ║            Q) Quit, Return to Main Menu                               ║
  58. echo    ║                                                                       ║
  59. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  60. bh 12q
  61. if errorlevel 3 goto start
  62. if errorlevel 2 goto 1prt
  63. if errorlevel 1 bh # PF.DOC
  64. goto start
  65. :1prt
  66. cls
  67. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  68. echo    ║                                                                       ║
  69. echo    ║              Printing PF.DOC, Port Finder Documentation               ║
  70. echo    ║                                                                       ║
  71. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  72. type pf.doc >prn
  73. echo    +                                                                       +
  74. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  75. echo    +                                                                       +
  76. pause
  77. goto start
  78. :2prtred
  79. if not exist pfreview.doc echo PFREVIEW.DOC file NOT found!
  80. if not exist pfreview.doc pause
  81. if not exist pfreview.doc goto start
  82. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  83. echo    ║                                                                       ║
  84. echo    ║            1) Display PFREVIEW.doc, Port Finder Reviews               ║
  85. echo    ║            2) Print PFREVIEW.DOC, Port Finder Reviews                 ║
  86. echo    ║                                                                       ║
  87. echo    ║            Q) Quit, Return to Main Menu                               ║
  88. echo    ║                                                                       ║
  89. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  90. bh 12q
  91. if errorlevel 3 goto start
  92. if errorlevel 2 goto 2prt
  93. if errorlevel 1 bh # PFREVIEW.DOC
  94. goto start
  95. :2prt
  96. cls
  97. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  98. echo    ║                                                                       ║
  99. echo    ║               Printing PFREVIEW.DOC, Port Finder Reviews              ║
  100. echo    ║                                                                       ║
  101. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  102. type pfreview.doc >prn
  103. echo    +                                                                       +
  104. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  105. echo    +                                                                       +
  106. pause
  107. goto start
  108. :3prtred
  109. if not exist problem.doc echo PROBLEM.DOC file NOT found!
  110. if not exist problem.doc pause
  111. if not exist problem.doc goto start
  112. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  113. echo    ║                                                                       ║
  114. echo    ║            1) Display PROBLEM.DOC, Port Finder Problem Report         ║
  115. echo    ║            2) Print PROBLEM.DOC, Port Finder Problem Report           ║
  116. echo    ║                                                                       ║
  117. echo    ║            Q) Quit, Return to Main Menu                               ║
  118. echo    ║                                                                       ║
  119. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  120. bh 12q
  121. if errorlevel 3 goto start
  122. if errorlevel 2 goto 3prt
  123. if errorlevel 1 bh # PROBLEM.DOC
  124. goto start
  125. :3prt
  126. cls
  127. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  128. echo    ║                                                                       ║
  129. echo    ║            Printing PROBLEM.DOC, Port Finder Problem Report           ║
  130. echo    ║                                                                       ║
  131. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  132. type problem.doc >prn
  133. echo    +                                                                       +
  134. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  135. echo    +                                                                       +
  136. pause
  137. goto start
  138. :4prtred
  139. if not exist register.doc echo REGISTER.DOC file NOT found!
  140. if not exist register.doc pause
  141. if not exist register.doc goto start
  142. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  143. echo    ║                                                                       ║
  144. echo    ║            1) Display REGISTER.DOC, PF Registration Form              ║
  145. echo    ║            2) Print REGISTER.DOC, PF Registration Form                ║
  146. echo    ║                                                                       ║
  147. echo    ║            Q) Quit, Return to Main Menu                               ║
  148. echo    ║                                                                       ║
  149. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  150. bh 12q
  151. if errorlevel 3 goto start
  152. if errorlevel 2 goto 4prt
  153. if errorlevel 1 bh # REGISTER.DOC
  154. goto start
  155. :4prt
  156. cls
  157. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  158. echo    ║                                                                       ║
  159. echo    ║          Printing REGISTER.DOC, Port Finder Registration Form         ║
  160. echo    ║                                                                       ║
  161. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  162. type register.doc >prn
  163. echo    +                                                                       +
  164. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  165. echo    +                                                                       +
  166. pause
  167. goto start
  168. :error
  169. cls
  170. echo    ╔═════════════════════════════════════════════════════════╗
  171. echo    ║                                                         ║
  172. echo    ║  The file BH.COM must be in the same default directory  ║
  173. echo    ║  as PRINTDOC.BAT.  Please have these two files in the   ║
  174. echo    ║  same default directory before running PRINTDOC.BAT.    ║
  175. echo    ║  Port Finder requires DOS 3.3, 4.0, or higher to run.   ║
  176. echo    ║                                                         ║
  177. echo    ╚═════════════════════════════════════════════════════════╝
  178. pause
  179. :end
  180. cls