home *** CD-ROM | disk | FTP | other *** search
/ The Education Master 1994 (4th Edition) / EDUCATIONS_MASTER_4TH_EDITION.bin / files / foodtion / slim2 / hdinst.bat < prev   
DOS Batch File  |  1993-03-31  |  9KB  |  312 lines

  1. ECHO OFF
  2. CLS
  3. IF "%1" == "" GOTO :ABORT
  4. IF "%2" == "" GOTO :ABORT
  5. IF "%1" == "%2" GOTO :ABORTA
  6. if "%1" == "A:" goto :abort
  7. if "%1" == "a:" goto :abort
  8. if "%1" == "B:" goto :abort
  9. if "%1" == "b:" goto :abort
  10. if "%1" == "C:" goto :abort
  11. if "%1" == "c:" goto :abort
  12. if "%1" == "D:" goto :abort
  13. if "%1" == "d:" goto :abort
  14. if "%1" == "E:" goto :abort
  15. if "%1" == "e:" goto :abort
  16. if "%1" == "F:" goto :abort
  17. if "%1" == "f:" goto :abort
  18. if "%1" == "G:" goto :abort
  19. if "%1" == "g:" goto :abort
  20. if "%1" == "H:" goto :abort
  21. if "%1" == "h:" goto :abort
  22. if "%1" == "I:" goto :abort
  23. if "%1" == "i:" goto :abort
  24. if "%1" == "J:" goto :abort
  25. if "%1" == "j:" goto :abort
  26. if "%1" == "K:" goto :abort
  27. if "%1" == "k:" goto :abort
  28. if "%1" == "L:" goto :abort
  29. if "%1" == "l:" goto :abort
  30. if "%2" == "A:" goto :abort
  31. if "%2" == "a:" goto :abort
  32. if "%2" == "B:" goto :abort
  33. if "%2" == "b:" goto :abort
  34. if "%2" == "C:" goto :abort
  35. if "%2" == "c:" goto :abort
  36. if "%2" == "D:" goto :abort
  37. if "%2" == "d:" goto :abort
  38. if "%2" == "E:" goto :abort
  39. if "%2" == "e:" goto :abort
  40. if "%2" == "F:" goto :abort
  41. if "%2" == "f:" goto :abort
  42. if "%2" == "G:" goto :abort
  43. if "%2" == "g:" goto :abort
  44. if "%2" == "H:" goto :abort
  45. if "%2" == "h:" goto :abort
  46. if "%2" == "I:" goto :abort
  47. if "%2" == "i:" goto :abort
  48. if "%2" == "J:" goto :abort
  49. if "%2" == "j:" goto :abort
  50. if "%2" == "K:" goto :abort
  51. if "%2" == "k:" goto :abort
  52. if "%2" == "L:" goto :abort
  53. if "%2" == "l:" goto :abort
  54. cls
  55. ECHO. 
  56. ECHO. 
  57. ECHO. 
  58. echo      ******************************************************************
  59. echo      *                                                                *
  60. echo      *        SLIMMER Rev 3.0 Hard Disk Installation Routine          *
  61. echo      *                                                                *
  62. echo      ******************************************************************
  63. ECHO. 
  64. ECHO. 
  65. ECHO.
  66. pause
  67. cls
  68. ECHO. 
  69. ECHO. 
  70. ECHO. 
  71. echo       [Subdirectory SLIM30 will be created on your hard disk....]
  72. ECHO. 
  73.    %2:
  74.    cd\
  75. echo                 Making subdirectory SLIM30
  76.       md\slim30
  77.       cd\slim30
  78. echo                 Removing read-only attrib from old *.dat files
  79. echo                 (for Rev 3.0 copies downloaded from CompuServe)       
  80.       attrib -r *.dat
  81. echo                 A  "File not found - *.DAT" comment is normal.....
  82. if not exist %1:3.exe goto :repeat10
  83. if not exist %1:1.exe goto :notS3
  84. echo                 Copying  all files to your hard disk
  85.    if not exist %1:\*.bat goto :skipbat
  86.    copy %1:\*.bat
  87.    :skipbat
  88.    if not exist %1:\*.dat goto :skipdat
  89.    copy %1:\*.dat
  90.    :skipdat
  91.    if not exist %1:\*.com goto :skipcom
  92.    copy %1:\*.com
  93.    :skipcom
  94.    if not exist %1:\*.doc goto :skipdoc
  95.    copy %1:\*.doc
  96.    :skipdoc
  97.    if not exist %1:\*.txt goto :skiptxt
  98.    copy %1:\*.txt
  99.    :skiptxt
  100.    cls
  101.    echo.
  102.    echo   Extracting newer files into your SLIM30 subdirectory    
  103.    echo.
  104.    %1:\1.exe -n
  105.    %1:\2.exe -n
  106.    %1:\3.exe -n
  107.    if not exist %1:\4.exe goto :skip4
  108.    %1:\4.exe -n
  109.    :skip4
  110.    if not exist %1:\4cal.exe goto :comment
  111.    %1:\4cal.exe -n
  112. goto :Comment
  113. :repeat10
  114. cls
  115. ECHO. 
  116. ECHO. 
  117. ECHO. 
  118. echo      ******************************************************************
  119. echo      *                                                                *
  120. echo      *       Insert Distribution Disk # 1 into Floppy Drive %1:        *
  121. echo      *                    and press any key                           *
  122. echo      *                                                                *
  123. echo      ******************************************************************
  124. ECHO. 
  125. ECHO. 
  126. ECHO. 
  127. pause
  128. cls
  129. IF NOT EXIST %1:1.exe GOTO :repeat10
  130. echo                 Copying  Files from Disk # 1
  131.    if not exist %1:\*.bat goto :skipbat2
  132.    copy %1:\*.bat
  133.    :skipbat2
  134.    if not exist %1:\*.dat goto :skipdat2
  135.    copy %1:\*.dat
  136.    :skipdat2
  137.    if not exist %1:\*.com goto :skipcom2
  138.    copy %1:\*.com
  139.    :skipcom2
  140.    if not exist %1:\*.doc goto :skipdoc2
  141.    copy %1:\*.doc
  142.    :skipdoc2
  143.    if not exist %1:\*.txt goto :skiptxt2
  144.    copy %1:\*.txt
  145.    :skiptxt2
  146.    cls
  147.    echo.
  148.    echo   Extracting newer files into your SLIM30 subdirectory    
  149.    echo.
  150.    %1:\1.exe -n
  151.    %1:\2.exe -n
  152. :repeat0
  153. cls
  154. ECHO. 
  155. ECHO. 
  156. ECHO. 
  157. echo      ******************************************************************
  158. echo      *                                                                *
  159. echo      *           Insert Disk # 2 into Floppy Drive %1:                 *
  160. echo      *                    and press any key                           *
  161. echo      *                                                                *
  162. echo      ******************************************************************
  163. ECHO. 
  164. ECHO.
  165. ECHO. 
  166. pause
  167. cls
  168. IF NOT EXIST %1:3.exe GOTO :repeat0
  169. echo                 Copying  Files from Disk # 2
  170.    if not exist %1:\*.bat goto :skipbat3
  171.    copy %1:\*.bat
  172.    :skipbat3
  173.    if not exist %1:\*.com goto :skipcom3
  174.    copy %1:\*.com
  175.    :skipcom3
  176.    if not exist %1:\*.doc goto :skipdoc3
  177.    copy %1:\*.doc
  178.    :skipdoc3
  179.    if not exist %1:\*.txt goto :skiptxt3
  180.    copy %1:\*.txt
  181.    :skiptxt3
  182.    %1:\3.exe -n
  183.    if not exist %1:\4.exe goto :skip4a
  184.    %1:\4.exe -n
  185.    :skip4a
  186.    if not exist %1:\4cal.exe goto :comment1
  187.    %1:\4cal.exe -n
  188. goto :Comment1
  189. :aborta
  190. CLS
  191. ECHO. 
  192. ECHO. 
  193. ECHO.
  194. ECHO. 
  195. ECHO 
  196. echo       ******************************************************************
  197. echo       *                                                                *
  198. echo       *        SLIMMER Rev 3.0 Hard Disk Installation Routine          *
  199. echo       *                                                                *
  200. echo       ******************************************************************
  201. ECHO. 
  202. ECHO. 
  203. ECHO. 
  204. ECHO. 
  205. ECHO. 
  206. ECHO 
  207. ECHO        The FROM floppy disk designation must be different from
  208. ECHO        the TO hard disk designation. An example is as follows:
  209. ECHO.
  210. ECHO                              HDINST A C
  211. ECHO.
  212. ECHO.
  213. echo                         INSTALLATION ABORTED
  214. GOTO :QUIT
  215. :abort
  216. CLS
  217. ECHO.
  218. ECHO.
  219. ECHO.
  220. ECHO.
  221. ECHO 
  222. echo       ******************************************************************
  223. echo       *                                                                *
  224. echo       *        SLIMMER Rev 3.0 Hard Disk Installation Routine          *
  225. echo       *                                                                *
  226. echo       ******************************************************************
  227. ECHO.
  228. ECHO.
  229. ECHO.
  230. ECHO.
  231. ECHO.
  232. ECHO 
  233. ECHO        You must specify two disk drive letters after the HDINST command.
  234. ECHO        The first is the FROM floppy disk designation, the second is
  235. ECHO        the TO hard disk designation. An example is as follows:
  236. ECHO. 
  237. ECHO                              HDINST A C
  238. ECHO. 
  239. echo        Do NOT use colons with the drive letters.
  240. ECHO. 
  241. ECHO. 
  242. echo                         INSTALLATION ABORTED
  243. GOTO :QUIT
  244. :notS3
  245. CLS
  246. ECHO. 
  247. ECHO. 
  248. ECHO.
  249. ECHO. 
  250. ECHO 
  251. echo       ******************************************************************
  252. echo       *                                                                *
  253. echo       *        SLIMMER Rev 3.0 Hard Disk Installation Routine          *
  254. echo       *                                                                *
  255. echo       ******************************************************************
  256. ECHO. 
  257. ECHO. 
  258. ECHO. 
  259. ECHO. 
  260. ECHO. 
  261. ECHO 
  262. ECHO        The disk in drive %1: does not appear to be a SLIMMER Rev 3.0
  263. ECHO        distribution disk, or it may be disk #2 instead of disk #1 of
  264. ECHO        the two-disk distribution disk set.
  265. ECHO. 
  266. ECHO. 
  267. echo                         INSTALLATION ABORTED
  268. GOTO :QUIT
  269. :comment1
  270. cls
  271. ECHO. 
  272. ECHO. 
  273. ECHO. 
  274. echo      ******************************************************************
  275. echo      *                FOR REGISTERED VERSION ONLY                     *
  276. echo      *                                                                *
  277. echo      *            Insert CALTAB Disk into Floppy Drive %1:            *
  278. echo      *                    and press any key                           *
  279. echo      *                                                                *
  280. echo      *     OR CTRL BREAK TO EXIT - TO START SLIMMER TYPE IN  S3       *
  281. echo      ******************************************************************
  282. ECHO.
  283. ECHO. 
  284. ECHO. 
  285. pause
  286. cls
  287. IF NOT EXIST %1:CALTAB.EXE GOTO :comment1
  288. echo                 Copying  Files from CALTAB Disk
  289.    if not exist %1:\*.bat goto :skipbat4
  290.    copy %1:\*.bat
  291.    :skipbat4
  292.    if not exist %1:\*.com goto :skipcom4
  293.    copy %1:\*.com
  294.    :skipcom4
  295.    if not exist %1:\*.doc goto :skipdoc4
  296.    copy %1:\*.doc
  297.    :skipdoc4
  298.    if not exist %1:\*.txt goto :skiptxt4
  299.    copy %1:\*.txt
  300.    :skiptxt4
  301.    if not exist %1:\*.exe goto :skipexe4
  302.    copy %1:\*.exe
  303.    :skipexe4
  304. :Comment
  305. ECHO. 
  306. echo     *****************************************************************
  307. ECHO     *  Start SLIMMER with the command S3 (return). If you wish to   *
  308. ECHO     *  see a demonstration of the program, type in DEMO (return).   *
  309. echo     *****************************************************************
  310. ECHO. 
  311. :Quit
  312.