home *** CD-ROM | disk | FTP | other *** search
/ The Education Master 1994 (4th Edition) / EDUCATIONS_MASTER_4TH_EDITION.bin / files / commadio / sport1 / sport154.exe / WAITS.EXE / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-11-24  |  13KB  |  385 lines

  1. echo off
  2. prompt $p $
  3. cls
  4. echo. 
  5. if "%1" == "C:" GOTO ready
  6. if "%1" == "c:" GOTO ready
  7. if "%1" == "D:" GOTO ready
  8. if "%1" == "d:" GOTO ready
  9. if "%1" == "E:" GOTO ready
  10. if "%1" == "e:" GOTO ready
  11. if "%1" == "F:" GOTO ready
  12. if "%1" == "f:" GOTO ready
  13. if "%1" == "G:" GOTO ready
  14. if "%1" == "g:" GOTO ready
  15. if "%1" == "H:" GOTO ready
  16. if "%1" == "h:" GOTO ready
  17. if "%1" == "I:" GOTO ready
  18. if "%1" == "i:" GOTO ready
  19. if "%1" == "J:" GOTO ready
  20. if "%1" == "j:" GOTO ready
  21. echo    ┌───────────────────────────────────────────────────────────────────┐
  22. echo    │           The SPORT Wide Area Information Transfer System         │
  23. echo    │                        Installation Utility                       │
  24. echo    │            Copyright(c) 1988, 1992 Augustine Associates           │
  25. echo    └───────────────────────────────────────────────────────────────────┘
  26. echo.   
  27. echo     Sorry,  but you have not specified  a drive on which SPORT should be
  28. echo     installed.  SPORT needs to reside on your Hard Disk Drive C: - J:.
  29. echo.   
  30. echo     For example, to install SPORT on drive C, use "INSTALL C:".  Use the
  31. echo     drive letter followed by a colon to designate the drive.  You should
  32. echo     use this method if you are installing SPORT from one or more distri-
  33. echo     bution diskettes.
  34. echo.   
  35. echo     If you are *NOT* installing from drive A:, but from files already on
  36. echo     your hard disk, use "INSTALL d: H", where "d:" is the drive on which
  37. echo     you will be installing SPORT.   If you received SPORT electronically
  38. echo     in one or more compressed files you should use this method.  Be sure
  39. echo     to use the "H" argument when you run INSTALL.
  40. echo.   
  41. echo     Please try again.
  42. echo.   
  43. GOTO finis
  44.  
  45. :READY
  46. cls
  47. echo. 
  48. echo    ┌───────────────────────────────────────────────────────────────────┐
  49. echo    │           The SPORT Wide Area Information Transfer System         │
  50. echo    │                        Installation Utility                       │
  51. echo    │            Copyright(c) 1988, 1992 Augustine Associates           │
  52. echo    └───────────────────────────────────────────────────────────────────┘
  53. echo. 
  54. echo     Installation will now begin.
  55.  
  56. echo     Please be sure you have all of the distribution disks ready to go.
  57. echo     The installation process is quite short and simple.
  58. echo. 
  59. %1
  60. cd \
  61. echo     Creating \SPORT subdirectory - for SPORT files and utilities.
  62. md sport > nul
  63. echo     Creating \SPORT\INCOMING subdirectory - for incoming mail.
  64. cd \sport
  65. md incoming > nul
  66. echo     Creating \SPORT\DOCS - for SPORT documentation and system notes.
  67. md docs > nul
  68. cd \sport
  69. echo. 
  70.  
  71. If "%2" == "h" GOTO hd1
  72. If "%2" == "H" GOTO hd1
  73. GOTO LOAD1
  74.  
  75. :hd1
  76. if exist *.doc copy *.doc \sport\docs > NUL
  77. if exist *.txt copy *.txt \sport\docs > NUL
  78. if exist *.doc del *.doc > NUL
  79. if exist *.txt del *.txt > NUL
  80. if exist disk1 del disk1 > NUL
  81. if exist disk2 del disk2 > NUL
  82. if exist disk3 del disk3 > NUL
  83. goto hd2
  84.  
  85. :LOAD1
  86. echo. 
  87. IF exist a:DISK1 GOTO d1
  88. echo Please place DISK 1 in Drive A:
  89. pause
  90. IF exist a:DISK1 GOTO d1
  91. goto load1
  92. :D1
  93. echo. 
  94. echo Please wait while files are copied...
  95. if exist a:*.exe copy a:*.exe \sport > NUL
  96. if exist a:*.ovr copy a:*.ovr \sport > NUL
  97. if exist a:*.bat copy a:*.bat \sport > NUL
  98. if exist a:*.raw copy a:*.raw \sport > NUL
  99. if exist a:*.key copy a:*.key \sport > NUL
  100. if exist a:*.ndx copy a:*.ndx \sport > NUL
  101. if exist a:*.ctl copy a:*.ctl \sport > NUL
  102. if exist a:*.lst copy a:*.lst \sport > NUL
  103. if exist a:*.001 copy a:*.001 \sport > NUL
  104. if exist a:*.idx copy a:*.idx \sport > NUL
  105. if exist a:*.cfg copy a:*.cfg \sport > NUL
  106. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  107. if exist a:*.spt copy a:*.spt \sport > NUL
  108. if exist a:*.toc copy a:*.toc \sport > NUL
  109.  
  110. :LOAD2
  111. cls
  112. echo. 
  113. echo    ┌───────────────────────────────────────────────────────────────────┐
  114. echo    │           The SPORT Wide Area Information Transfer System         │
  115. echo    │                        Installation Utility                       │
  116. echo    │            Copyright(c) 1988, 1992 Augustine Associates           │
  117. echo    └───────────────────────────────────────────────────────────────────┘
  118. echo. 
  119. echo Please place DISK 2 in Drive A:
  120. pause
  121. IF exist a:DISK2 GOTO d2
  122. goto load2
  123. :D2
  124. echo. 
  125. echo Please wait while files are copied...
  126. if exist a:*.exe copy a:*.exe \sport > NUL
  127. if exist a:*.ovr copy a:*.ovr \sport > NUL
  128. if exist a:*.bat copy a:*.bat \sport > NUL
  129. if exist a:*.raw copy a:*.raw \sport > NUL
  130. if exist a:*.key copy a:*.key \sport > NUL
  131. if exist a:*.ndx copy a:*.ndx \sport > NUL
  132. if exist a:*.lst copy a:*.lst \sport > NUL
  133. if exist a:*.ctl copy a:*.ctl \sport > NUL
  134. if exist a:*.cfg copy a:*.cfg \sport > NUL
  135. if exist a:*.001 copy a:*.001 \sport > NUL
  136. if exist a:*.idx copy a:*.idx \sport > NUL
  137. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  138. if exist a:*.spt copy a:*.spt \sport > NUL
  139. if exist a:*.toc copy a:*.toc \sport > NUL
  140.  
  141.  
  142.  
  143. :LOAD3
  144. cls
  145. echo. 
  146. echo    ┌───────────────────────────────────────────────────────────────────┐
  147. echo    │           The SPORT Wide Area Information Transfer System         │
  148. echo    │                        Installation Utility                       │
  149. echo    │            Copyright(c) 1988, 1992 Augustine Associates           │
  150. echo    └───────────────────────────────────────────────────────────────────┘
  151. echo. 
  152. echo Please place DISK 3 in Drive A:
  153. pause
  154. IF exist a:DISK3 GOTO d3
  155. goto load3
  156. :D3
  157. echo. 
  158. echo Please wait while files are copied...
  159. if exist a:*.exe copy a:*.exe \sport > NUL
  160. if exist a:*.ovr copy a:*.ovr \sport > NUL
  161. if exist a:*.bat copy a:*.bat \sport > NUL
  162. if exist a:*.raw copy a:*.raw \sport > NUL
  163. if exist a:*.key copy a:*.key \sport > NUL
  164. if exist a:*.ndx copy a:*.ndx \sport > NUL
  165. if exist a:*.ctl copy a:*.ctl \sport > NUL
  166. if exist a:*.cfg copy a:*.cfg \sport > NUL
  167. if exist a:*.lst copy a:*.lst \sport > NUL
  168. if exist a:*.001 copy a:*.001 \sport > NUL
  169. if exist a:*.idx copy a:*.idx \sport > NUL
  170. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  171. if exist a:*.spt copy a:*.spt \sport > NUL
  172. if exist a:*.toc copy a:*.toc \sport > NUL
  173.  
  174.  
  175.  
  176. :LOAD4
  177. cls
  178. echo. 
  179. echo    ┌───────────────────────────────────────────────────────────────────┐
  180. echo    │           The SPORT Wide Area Information Transfer System         │
  181. echo    │                        Installation Utility                       │
  182. echo    │            Copyright(c) 1988, 1992 Augustine Associates           │
  183. echo    └───────────────────────────────────────────────────────────────────┘
  184. echo. 
  185. echo Please place DISK 4 in Drive A:
  186. pause
  187. IF exist a:DISK4 GOTO d4
  188. goto load4
  189. :D4
  190. echo. 
  191. echo Please wait while files are copied...
  192. if exist a:*.exe copy a:*.exe \sport > NUL
  193. if exist a:*.ovr copy a:*.ovr \sport > NUL
  194. if exist a:*.bat copy a:*.bat \sport > NUL
  195. if exist a:*.raw copy a:*.raw \sport > NUL
  196. if exist a:*.key copy a:*.key \sport > NUL
  197. if exist a:*.ndx copy a:*.ndx \sport > NUL
  198. if exist a:*.ctl copy a:*.ctl \sport > NUL
  199. if exist a:*.cfg copy a:*.cfg \sport > NUL
  200. if exist a:*.lst copy a:*.lst \sport > NUL
  201. if exist a:*.001 copy a:*.001 \sport > NUL
  202. if exist a:*.idx copy a:*.idx \sport > NUL
  203. if exist a:*.doc copy a:*.doc \sport\docs > NUL
  204. if exist a:*.spt copy a:*.spt \sport > NUL
  205. if exist a:*.toc copy a:*.toc \sport > NUL
  206.  
  207.  
  208.  
  209.  
  210. :hd2
  211. cls
  212. echo. 
  213. echo    ┌───────────────────────────────────────────────────────────────────┐
  214. echo    │           The SPORT Wide Area Information Transfer System         │
  215. echo    │                        Installation Utility                       │
  216. echo    │            Copyright(c) 1988, 1992 Augustine Associates           │
  217. echo    └───────────────────────────────────────────────────────────────────┘
  218. echo. 
  219. echo     You are now ready to configure SPORT for your own system.   Several
  220. echo     questions will be presented to help you customize your installation.
  221. echo. 
  222. echo     Please  note that some questions have default responses.   You will
  223. echo     only need to press [RETURN] on your keyboard  to accept the default
  224. echo     response.  Several of these questions will be confusing if you have
  225. echo     not yet read the documentation for SPORT. Don't let this worry you.
  226. echo     If you are  unsure about how to answer a given question, just press
  227. echo     [RETURN] on  your keyboard.   You can run the  Installation Utility
  228. echo     (SPORTI) again as often as you wish.
  229. echo. 
  230. echo     After the  installation  is complete you will find  SPORTI  in your
  231. echo     default  SPORT  subdirectory.   The SPORT documentation covers many
  232. echo     more advanced features which you may wish to explore.
  233. echo. 
  234. pause
  235. if "%1" == "C:" SPORTI 3
  236. if "%1" == "c:" SPORTI 3
  237. if "%1" == "D:" SPORTI 4
  238. if "%1" == "d:" SPORTI 4
  239. if "%1" == "E:" SPORTI 5
  240. if "%1" == "e:" SPORTI 5
  241. if "%1" == "F:" SPORTI 6
  242. if "%1" == "f:" SPORTI 6
  243. if "%1" == "G:" SPORTI 7
  244. if "%1" == "g:" SPORTI 7
  245. if "%1" == "H:" SPORTI 8
  246. if "%1" == "h:" SPORTI 8
  247. if "%1" == "I:" SPORTI 9
  248. if "%1" == "i:" SPORTI 9
  249. if "%1" == "J:" SPORTI 10
  250. if "%1" == "j:" SPORTI 10
  251. REM pause
  252.  
  253. if errorlevel 1 goto aab
  254. goto ccb
  255.  
  256. :aab
  257. cls
  258. echo. 
  259. echo You have asked to cancel the SPORT Installation process.
  260. echo        The Installation may be rerun at any time.
  261. echo. 
  262. goto finis
  263.  
  264. :ccb
  265. if not exist \SPORT\SPORT.EXE GOTO NOT1
  266. if not exist \SPORT\DOCS\USER.DOC GOTO NOT1
  267.  
  268. if not exist \SPORT\SPORTEVT.EXE GOTO NOT2
  269. if not exist \SPORT\SPORTEDT.EXE GOTO NOT2
  270. if not exist \SPORT\SPORTEX.EXE GOTO NOT2
  271. if not exist \SPORT\SPORTRM.EXE GOTO NOT2
  272. if not exist \SPORT\SPORTLIB.EXE GOTO NOT2
  273. if not exist \SPORT\POSTMAIL.BAT GOTO NOT2
  274. if not exist \SPORT\SPORTR.CTL GOTO NOT2
  275. if not exist \SPORT\SPORTRTE.CTL GOTO NOT2
  276. if not exist \SPORT\SFLASH.RAW GOTO NOT2
  277. if not exist \SPORT\SPORT.RAW GOTO NOT2
  278. if not exist \SPORT\SPORTLIB.CTL GOTO NOT2
  279. if not exist \SPORT\SPREP.EXE GOTO NOT2
  280. if not exist \SPORT\SPORTU.EXE GOTO NOT2
  281. if not exist \SPORT\SPORTRTE.EXE GOTO NOT2
  282. if not exist \SPORT\SMODEM.EXE GOTO NOT2
  283. if not exist \SPORT\SPORTEX.CTL GOTO NOT2
  284.  
  285. if not exist \SPORT\SPORT.OVR GOTO NOT3
  286. if not exist \SPORT\SPORTID.EXE GOTO NOT3
  287. if not exist \SPORT\SPORTCON.CTL GOTO NOT3
  288. if not exist \SPORT\SPORTI.EXE GOTO NOT3
  289. if not exist \SPORT\SPORTCON.CTL GOTO NOT3
  290. if not exist \SPORT\SPORTADM.EXE GOTO NOT3
  291.  
  292. if not exist \SPORT\BBSMENU.EXE GOTO NOT4
  293. if not exist \SPORT\SPORTBBS.EXE GOTO NOT4
  294. if not exist \SPORT\SPORTHLP.EXE GOTO NOT4
  295. if not exist \SPORT\SPORTRA.EXE GOTO NOT4
  296. if not exist \SPORT\SPORTRPT.EXE GOTO NOT4
  297. if not exist \SPORT\SPORTMM.EXE GOTO NOT4
  298. if not exist \SPORT\SPORTMM.CTL GOTO NOT4
  299. if not exist \SPORT\SPORT.NDX GOTO NOT4
  300. if not exist \SPORT\SPORTY.EXE GOTO NOT4
  301.  
  302. sprep y
  303. if exist \SPORT\WAITS.EXE DEL \SPORT\WAITS.EXE > NUL
  304. if exist \WAITS.EXE DEL \WAITS.EXE > NUL
  305. if exist \READ.ME DEL \READ.ME > NUL
  306. if exist \SPORT\READ.ME DEL \SPORT\READ.ME > NUL
  307. if exist SPORTKEY.EXE SPORTKEY
  308. cls
  309. :hd3
  310. echo. 
  311. echo    ┌───────────────────────────────────────────────────────────────────┐
  312. echo    │           The SPORT Wide Area Information Transfer System         │
  313. echo    │                        Installation Utility                       │
  314. echo    │            Copyright(c) 1988, 1992 Augustine Associates           │
  315. echo    └───────────────────────────────────────────────────────────────────┘
  316. echo.
  317. echo    Your SPORT system has now been installed. You will want to edit your
  318. echo    Phone Index list. Do this by using (U)tilities / Edit ID(X) file from
  319. echo    the Main Screen.
  320. echo. 
  321. echo    Two files have been automatically prepared, but you may wish to edit
  322. echo    them; SPORT.BAN - the banner file shown to human callers and
  323. echo          SCHAT.BAN - the banner file shown to callers who want to chat.
  324. echo. 
  325. echo    A batch file named RUNSPORT.BAT has been created. You may now use SPORT
  326. echo    by typing RUNSPORT at the \SPORT directory prompt.
  327. echo. 
  328. echo    You will find the SPORT documentation in the subdirectory \SPORT\DOCS.
  329. echo.   Registration information is contained in the documentation.
  330. echo.
  331. echo    If you would like to run SPORT in the Test Mode, enter this command:
  332. echo.
  333. echo                               RUNSPORT X
  334. GOTO FINIS
  335.  
  336. :NOT1
  337. cls
  338. echo.
  339. echo.
  340. echo.
  341. echo            One of the files from Disk or File #1 has not be installed.
  342. echo               Please reinstall SPORT from the original disk or file.
  343. echo.
  344. echo.
  345. echo.
  346. GOTO FINIS
  347.  
  348. :NOT2
  349. cls
  350. echo.
  351. echo.
  352. echo.
  353. echo            One of the files from Disk or File #2 has not be installed.
  354. echo               Please reinstall SPORT from the original disk or file.
  355. echo.
  356. echo.
  357. echo.
  358. GOTO FINIS
  359.  
  360. :NOT3
  361. cls
  362. echo.
  363. echo.
  364. echo.
  365. echo            One of the files from Disk or File #3 has not be installed.
  366. echo               Please reinstall SPORT from the original disk or file.
  367. echo.
  368. echo.
  369. echo.
  370. GOTO FINIS
  371.  
  372. :NOT4
  373. cls
  374. echo.
  375. echo.
  376. echo.
  377. echo            One of the files from Disk or File #4 has not be installed.
  378. echo               Please reinstall SPORT from the original disk or file.
  379. echo.
  380. echo.
  381. echo.
  382. GOTO FINIS
  383.  
  384. :FINIS
  385.