home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / BASIC / POWBASIC / LIBRARY3 / OPSYS1.ZIP / DOCUTIL.BAT < prev    next >
DOS Batch File  |  1990-11-15  |  9KB  |  177 lines

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