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

  1. @echo off
  2. rem 
  3. rem +-----------------------------------------+
  4. rem !   Port Finder Install Batch File        !
  5. rem !   Copyright (c) 1990 mcTRONic Systems   !
  6. rem !   Revised on: August 7, 1990            !
  7. rem !   File Name: INSTALL.BAT                !
  8. rem +-----------------------------------------+
  9. rem 
  10. cls
  11. echo ╔═══════════════════════════════════════════════════════════════════════╗
  12. echo ║                                                                       ║
  13. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  14. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  15. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  16. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  17. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  18. echo ║                                                                       ║
  19. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  20. echo ║                                                                       ║
  21. if exist BH.COM bh ^
  22. if errorlevel 1 goto dosok
  23. goto baddosver
  24. :dosok
  25. if NOT exist INSTALL.BAT goto c_error
  26. if "%1"=="" goto a_error
  27. for %%c in (a: A: b: B:) do if %1==%%c goto d_error
  28. for %%c in (Help HELP help ?) do if %1==%%c goto help
  29. if NOT exist %1\nul goto b_error
  30. :start
  31. echo ╠═══════════════════════════════════════════════════════════════════════╝
  32. echo ║   Install PORT FINDER in: %1\PORTFIND
  33. echo ╠═══════════════════════════════════════════════════════════════════════╗
  34. echo ║                                                                       ║
  35. echo ║ This batch file will install  Port Finder and all of its files on the ║
  36. echo ║ Hard Disk you have specified above.   Would you like to continue with ║
  37. echo ║ this installation? (Yes/No)                                           ║
  38. echo ║                                                                       ║
  39. echo ╚═══════════════════════════════════════════════════════════════════════╝
  40. bh YN
  41. if errorlevel 2 install help
  42. cls
  43. echo ╔═══════════════════════════════════════════════════════════════════════╗
  44. echo ║                                                                       ║
  45. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  46. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  47. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  48. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  49. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  50. echo ║                                                                       ║
  51. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  52. echo ║                                                                       ║
  53. echo ╠═══════════════════════════════════════════════════════════════════════╣
  54. echo ║                                                                       ║
  55. if exist %1\portfind\pf.com goto update
  56. echo ║    Port Finder installation now in progress.  Please stand by ....    ║
  57. echo ║                                                                       ║
  58. echo ╚═══════════════════════════════════════════════════════════════════════╝
  59. goto cont
  60. :update
  61. echo Y|del %1\portfind\*.* >nul
  62. echo ║       Port Finder update now in progress.  Please stand by ....       ║
  63. echo ║                                                                       ║
  64. echo ╚═══════════════════════════════════════════════════════════════════════╝
  65. :cont
  66. if NOT exist %1\PORTFIND\nul md %1\PORTFIND >nul
  67. if exist pf.com copy *.com %1\PORTFIND >nul
  68. if exist pf.sys copy pf.sys %1\PORTFIND >nul
  69. if exist pf.pif copy *.pif %1\PORTFIND >nul
  70. if exist pf.doc copy *.doc %1\PORTFIND >nul
  71. if exist printdoc.bat copy *.bat %1\PORTFIND >nul
  72. if exist boot13.com copy boot13.com %1\portfind >nul
  73. %1\PORTFIND\
  74. cd %1\PORTFIND
  75. if not exist boot13.com goto cont2
  76. md boot
  77. cd boot
  78. ..\boot13 >nul
  79. cd ..
  80. del boot13.com
  81. :cont2
  82. CLS
  83. echo ╔═══════════════════════════════════════════════════════════════════════╗
  84. echo ║                                                                       ║
  85. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  86. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  87. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  88. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  89. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  90. echo ║                                                                       ║
  91. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  92. echo ║                                                                       ║
  93. echo ╠═══════════════════════════════════════════════════════════════════════╣
  94. echo ║                                                                       ║
  95. echo ║ Port Finder is now installed on your hard drive along with all of its ║
  96. echo ║ support files.   To print out the  Port Finder manual type "PRINTDOC" ║
  97. echo ║ at the DOS prompt.  If this is a Shareware copy please register  your ║
  98. echo ║ copy if you decide to use Port Finder.    To run Port Finder you must ║
  99. echo ║ change to the installed directory and enter "PF".      You should add ║
  100. echo ║ Port Finder to your AUTOEXEC.BAT file or your CONFIG.SYS file.    See ║
  101. echo ║ the Port Finder Documentation for more information.      Thank You !! ║
  102. echo ║                                                                       ║
  103. echo ╚═══════════════════════════════════════════════════════════════════════╝
  104. echo    CHANGE TO "%1\PORTFIND" AND ENTER "PF"
  105. echo ═════════════════════════════════════════════════════════════════════════
  106. :wantdoc
  107. pause
  108. cls
  109. echo    ╔══════════════════════════════════════════════════════╗
  110. echo    ║                                                      ║
  111. echo    ║   Would you like to run the  Port Finder  Document   ║
  112. echo    ║   Display and Print Utility PRINTDOC NOW (Yes/No)?   ║
  113. echo    ║                                                      ║
  114. echo    ╚══════════════════════════════════════════════════════╝
  115. bh yn
  116. if errorlevel 2 goto done
  117. if errorlevel 1 printdoc
  118. GOTO DONE
  119. :help
  120. echo ╠═══════════════════════════════════════════════════════════════════════╣
  121. goto e_error
  122. :baddosver
  123. echo ╠═══════════════════════════════════════════════════════════════════════╣
  124. echo ║                                                                       ║
  125. echo ║  PROBLEM: Incorrect DOS Version.  DOS 3.3 or higher is required!      ║
  126. goto e_error
  127. :a_error
  128. echo ╠═══════════════════════════════════════════════════════════════════════╣
  129. echo ║                                                                       ║
  130. echo ║  This INSTALL.BAT file needs to know what  Hard Drive you want to     ║
  131. echo ║  install  Port Finder  on.    ALL Hard Disk Drive Letters  can be     ║
  132. echo ║  entered at the DOS prompt.  If your HARD DRIVE is C:, D:, E:, F:     ║
  133. echo ║  or G: and the predefined subdirectory name PORTFIND  is OK, then     ║
  134. echo ║  enter the Listed Hard Drive Letter to use, or press Q to Quit.       ║
  135. echo ║                                                                       ║
  136. echo ╚═══════════════════════════════════════════════════════════════════════╝
  137. bh CDEFGQ
  138. if errorlevel 6 goto nodrive
  139. if errorlevel 5 INSTALL G:
  140. if errorlevel 4 INSTALL F:
  141. if errorlevel 3 INSTALL E:
  142. if errorlevel 2 INSTALL D:
  143. if errorlevel 1 INSTALL C:
  144. :nodrive
  145. cls
  146. echo ╔═══════════════════════════════════════════════════════════════════════╗
  147. echo ║                                                                       ║
  148. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  149. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  150. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  151. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  152. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  153. echo ║                                                                       ║
  154. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  155. echo ║                                                                       ║
  156. echo ╠═══════════════════════════════════════════════════════════════════════╣
  157. echo ║                                                                       ║
  158. echo ║  PROBLEM: What is your TARGET Drive ?  A TARGET Drive is required!    ║
  159. goto e_error
  160. :b_error
  161. echo ╠═══════════════════════════════════════════════════════════════════════╣
  162. echo ║                                                                       ║
  163. echo ║  PROBLEM: The drive\directory Specified DOES NOT EXIST!               ║
  164. goto e_error
  165. :c_error
  166. echo ╠═══════════════════════════════════════════════════════════════════════╣
  167. echo ║                                                                       ║
  168. echo ║  PROBLEM: "INSTALL.BAT" is NOT Located in the Default Drive!          ║
  169. goto :e_error
  170. :d_error
  171. echo ╠═══════════════════════════════════════════════════════════════════════╣
  172. echo ║                                                                       ║
  173. echo ║  PROBLEM: Floppy Disk installation not required.  For Hard Disk Only! ║
  174. :e_error
  175. echo ║                                                                       ║
  176. echo ║  Syntax: "INSTALL d:[\path]"                                          ║
  177. echo ║                                                                       ║
  178. echo ║  This INSTALL  batch file must be located in the default drive.  The  ║
  179. echo ║  target disk drive d is a required parameter and must be a HARD DISK  ║
  180. echo ║  DRIVE while the  \path  is optional.  The  final sub-directory will  ║
  181. echo ║  always be named PORTFIND.  INSTALL C:   will install Port Finder in  ║
  182. echo ║  C:\PORTFIND.    INSTALL C:\UTILITY  will  install  Port  Finder  in  ║
  183. echo ║  C:\UTILITY\PORTFIND. Please rerun INSTALL with required parameters.  ║
  184. echo ╚═══════════════════════════════════════════════════════════════════════╝
  185. goto wantdoc
  186. :done 
  187. cls