home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BUSINESS / RTK_B.ZIP / INSTALL.BAT next >
DOS Batch File  |  1993-08-24  |  3KB  |  140 lines

  1. ECHO OFF
  2. CLS
  3. IF %1x==x GOTO NODRIVE
  4. IF %2x==x GOTO NODRIVE
  5. IF %1x==%2x GOTO NODRIVE
  6. GOTO YESDRIVE
  7.  
  8. :NODRIVE
  9. ECHO.
  10. ECHO      This routine is for installing `R-T-K Training' on a hard
  11. ECHO      disk.  If you DO NOT have one, then you will not be
  12. ECHO      able to use this software.  Sorry, but the floppy drive
  13. ECHO      version is no longer being distributed.
  14. ECHO.
  15. ECHO      The `R-T-K Training' installation routine requires that
  16. ECHO      you specify two drives.  You must specify the drive you are
  17. ECHO      at now and the hard drive where you want it installed.
  18. ECHO      It must be either the C or D hard drive.
  19. ECHO .
  20. ECHO      For example, INSTALL A: C:  . . . Please try again.
  21. GOTO END
  22.  
  23. :YESDRIVE
  24. ECHO .
  25. ECHO .
  26. ECHO      This routine is for installing `R-T-K Training' on a C or D
  27. ECHO      hard disk.  If you do not want to do this at this time,
  28. ECHO      then press the "Ctrl" + "Break" keys together and then "Y"
  29. ECHO      to stop this batch file.
  30. ECHO .
  31. ECHO Otherwise . . .
  32. ECHO .
  33. PAUSE
  34. GOTO TRY1
  35.  
  36. :TRY1
  37. ECHO OFF
  38. CLS
  39. IF EXIST %1RTK1.EXE GOTO COPY1
  40. ECHO.
  41. ECHO.
  42. ECHO        The disk in Drive %1 is NOT disk 1.  Insert R-T-K Disk 1 and ...
  43. ECHO.
  44. ECHO.
  45. PAUSE
  46. GOTO TRY1
  47.  
  48. :COPY1
  49. CD C:\
  50. IF %2==C: GOTO CBAT
  51. IF %2==c: GOTO CBAT
  52. GOTO DBAT
  53.  
  54. :CBAT
  55. COPY %1RTKC.TXT C:\RTK.BAT
  56. GOTO UPNEXT
  57.  
  58. :DBAT
  59. COPY %1RTKD.TXT C:\RTK.BAT
  60. GOTO UPNEXT
  61.  
  62. :UPNEXT
  63. %2
  64. MD %2\RTK
  65. CD %2\RTK
  66. CLS
  67. ECHO OFF
  68. ECHO .
  69. ECHO    Note:  Although `R-T-K Training' is being loaded into a
  70. ECHO           subdirectory called RTK, you will be able to start
  71. ECHO           the program without changing directories simply by
  72. ECHO           typing RTK and pressing the Enter key.
  73. ECHO .
  74. PAUSE
  75. CLS
  76. ECHO .
  77. ECHO.
  78. ECHO    Please wait while loading program files from Disk 1 . . .
  79. ECHO.
  80. ECHO.
  81.  
  82. COPY %1*.* %2
  83.  
  84. ECHO.
  85. ECHO.
  86. ECHO    Now place `R-T-K Training' Disk 2 into the A: Drive.
  87. ECHO.
  88. PAUSE
  89. GOTO TRY2
  90.  
  91. :TRY2
  92. ECHO OFF
  93. CLS
  94. IF EXIST %1RTK2.EXE GOTO COPY2
  95. ECHO.
  96. ECHO.
  97. ECHO        The disk in Drive %1 is NOT disk 2.  Insert R-T-K Disk 2 and ...
  98. ECHO.
  99. ECHO.
  100. PAUSE
  101. GOTO TRY2
  102.  
  103. :COPY2
  104. ECHO.
  105. ECHO    Please wait while loading program files from Disk 2 . . .
  106. ECHO.
  107. ECHO.
  108.  
  109. COPY %1*.* %2
  110.  
  111. ECHO.
  112. ECHO.
  113. ECHO.
  114. ECHO    Please wait while uncompressing the program files . . .
  115. ECHO.
  116. ECHO.
  117. RTK1
  118. RTK2
  119. CD\
  120. C:
  121. CD\
  122. CLS
  123. ECHO.
  124. ECHO.
  125. ECHO.
  126. ECHO.
  127. ECHO.
  128. ECHO.
  129. ECHO      That is it!!!  You're finished.  Now place your ORIGINAL
  130. ECHO      `R-T-K Training' disks away and use your hard drive copy
  131. ECHO      to permit employees to begin your own in-house Hazards
  132. ECHO      Communication Training Program.  (Remember to run the
  133. ECHO      configuration routine first.)  Refer to the operating
  134. ECHO      instructions for more details on how to use the `R-T-K
  135. ECHO      Training' program.
  136. ECHO.
  137. ECHO.
  138. GOTO END
  139. :END
  140.