home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 9 / 1995-08_Disc_9.iso / airlift / instairl.bat < prev    next >
DOS Batch File  |  1995-06-06  |  4KB  |  218 lines

  1. @echo off
  2. cls
  3. @echo             ╔══════════════════════════════════╗
  4. @echo             ║  Please press the letter of the  ║
  5. @echo             ║     HARD DRIVE to install to     ║
  6. @echo             ║  (C-Z are valid drive choices)   ║
  7. @echo             ╚══════════════════════════════════╝
  8. @echo .
  9. @echo      Enter your selection [default=C]:
  10. choice /c:cdefghijklmnopqrstuvwxyz /n
  11. if errorlevel 24 goto dos24
  12. if errorlevel 23 goto dos23
  13. if errorlevel 22 goto dos22
  14. if errorlevel 21 goto dos21
  15. if errorlevel 20 goto dos20
  16. if errorlevel 19 goto dos19
  17. if errorlevel 18 goto dos18
  18. if errorlevel 17 goto dos17
  19. if errorlevel 16 goto dos16
  20. if errorlevel 15 goto dos15
  21. if errorlevel 14 goto dos14
  22. if errorlevel 13 goto dos13
  23. if errorlevel 12 goto dos12
  24. if errorlevel 11 goto dos11
  25. if errorlevel 10 goto dos10
  26. if errorlevel 9 goto dos9
  27. if errorlevel 8 goto dos8
  28. if errorlevel 7 goto dos7
  29. if errorlevel 6 goto dos6
  30. if errorlevel 5 goto dos5
  31. if errorlevel 4 goto dos4
  32. if errorlevel 3 goto dos3
  33. if errorlevel 2 goto dos2
  34. if errorlevel 1 goto dos1
  35.  
  36. :dos24
  37. SET %y=z:
  38. goto pcg
  39.  
  40. :dos23
  41. SET %y=y:
  42. goto pcg
  43.  
  44. :dos22
  45. SET %y=x:
  46. goto pcg
  47.  
  48. :dos21
  49. SET %y=w:
  50. goto pcg
  51.  
  52. :dos20
  53. SET %y=v:
  54. goto pcg
  55.  
  56. :dos19
  57. SET %y=u:
  58. goto pcg
  59.  
  60. :dos18
  61. SET %y=t:
  62. goto pcg
  63.  
  64. :dos17
  65. SET %y=s:
  66. goto pcg
  67.  
  68. :dos16
  69. SET %y=r:
  70. goto pcg
  71.  
  72. :dos15
  73. SET %y=q:
  74. goto pcg
  75.  
  76. :dos14
  77. SET %y=p:
  78. goto pcg
  79.  
  80. :dos13
  81. SET %y=o:
  82. goto pcg
  83.  
  84. :dos12
  85. SET %y=n:
  86. goto pcg
  87.  
  88. :dos11
  89. SET %y=m:
  90. goto pcg
  91.  
  92. :dos10
  93. SET %y=l:
  94. goto pcg
  95.  
  96. :dos9
  97. SET %y=k:
  98. goto pcg
  99.  
  100. :dos8
  101. SET %y=j:
  102. goto pcg
  103.  
  104. :dos7
  105. SET %y=i:
  106. goto pcg
  107.  
  108. :dos6
  109. SET %y=h:
  110. goto pcg
  111.  
  112. :dos5
  113. SET %y=g:
  114. goto pcg
  115.  
  116. :dos4
  117. SET %y=f:
  118. goto pcg
  119.  
  120. :dos3
  121. SET %y=e:
  122. goto pcg
  123.  
  124. :dos2
  125. SET %y=d:
  126. goto pcg
  127.  
  128. :dos1
  129. SET %y=c:
  130. goto pcg
  131.  
  132. :pcg
  133. @echo  Which would you like to do?
  134. @echo                1. Install Airlift Rescue
  135. @echo                2. Run Airlift Rescue
  136. @echo                3. E(X)it
  137. choice /c:123x /n 
  138. if errorlevel 4 goto end
  139. if errorlevel 3 goto end
  140. if errorlevel 2 goto runair
  141. if errorlevel 1 goto instair
  142.  
  143. :instair
  144. @echo Install to %y%\AIRLIFT
  145. choice
  146. if errorlevel 2 goto inst2
  147. if errorlevel 1 goto inst1
  148.  
  149. :inst1
  150. cd\
  151. md %y%\AIRLIFT
  152. XCOPY %x%\AIRLIFT\*.*  %y%\AIRLIFT 
  153. cls
  154. @echo   ╔══════════════════════════════════╗
  155. @echo   ║  To play, enter the directory    ║
  156. @echo   ║  %y%\AIRLIFT on your HARD DRIVE   ║
  157. @echo   ║  and type AIRLIFT to start the   ║
  158. @echo   ║  game.                           ║
  159. @echo   ╚══════════════════════════════════╝
  160. @echo .
  161. pause
  162. %x%
  163. cd\
  164. goto end
  165.  
  166. :inst2
  167. cls
  168. @echo      ╔════════════════════════════════════════════════════════════╗
  169. @echo      ║  If you wish to install Airlift Rescue to a directory other║
  170. @echo      ║  than the default, create a directory on your hard drive,  ║
  171. @echo      ║  go to the \AIRLIFT directory on our CD and copy all of    ║
  172. @echo      ║  the files to the directory you prefer. To play the game,  ║
  173. @echo      ║  go to the directory you install to and type AIRLIFT.      ║
  174. @echo      ╚════════════════════════════════════════════════════════════╝
  175. echo .
  176. pause
  177. CD\
  178. goto end
  179.  
  180. :runair
  181. @echo off
  182. cls
  183. @echo   ╔══════════════════════════════════╗
  184. @echo   ║  Did you install the game to the ║
  185. @echo   ║  default directory %y%\AIRLIFT?   ║
  186. @echo   ╚══════════════════════════════════╝
  187. choice 
  188. if errorlevel 2 goto manual
  189. if errorlevel 1 goto hd
  190.  
  191. :hd
  192. %y%
  193. cd\AIRLIFT
  194. CALL AIRLIFT.EXE
  195. @echo .
  196. pause
  197. %x%
  198. CD\
  199. goto end
  200.  
  201. :manual
  202. cls
  203. @echo      ╔════════════════════════════════════════════════╗
  204. @echo      ║  If you installed Airlift Rescue to a directory║
  205. @echo      ║  other than the %y%\AIRLIFT default directory,  ║
  206. @echo      ║  exit our CD, access the directory you         ║
  207. @echo      ║  installed to and type AIRLIFT.                ║
  208. @echo      ╚════════════════════════════════════════════════╝
  209. echo .
  210. pause
  211. %x%
  212. CD\
  213. goto end
  214.  
  215.  
  216.  
  217. :end
  218.