home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / dd13a.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-07-22  |  4KB  |  181 lines

  1. @echo off
  2. cls
  3.  
  4. REM if exist DDATA.EXE goto oneDisk
  5. if not exist DDOWNS.EXE goto noFile
  6.  
  7. :oneDisk
  8.  
  9. if "%1" == "" goto help
  10. if "%2" == "" goto noPath
  11.  
  12. :path
  13.  
  14. for %%A in (A B C D E F G H I J K L a b c d e f g h i j k l) do if !%1 == !%%A goto okay1
  15. goto help
  16.  
  17. :okay1
  18.  
  19. for %%A in ( : \ ) do if !%2 == !%%A goto help
  20.  
  21. echo .                         INSTALLING TO DRIVE %1:\%2
  22. echo .
  23. echo .                         DIGITAL DOWNS INSTALLATION
  24. echo .
  25. md %1:\%2
  26. echo .                               COPYING FILES
  27. if exist DDATA.EXE goto copyAllOne
  28. copy  ddowns.exe %1:\%2
  29.  
  30. :insert1
  31.  
  32. cls
  33.  
  34. echo .
  35. echo Insert disk 2 in drive and push a key to continue or
  36. echo contol C to quit installation.
  37. echo .
  38. echo .
  39. PAUSE
  40.  
  41. if not exist ddlibs.exe goto insert1
  42.  
  43. echo Copying files from disk 2.
  44.  
  45. copy ddlibs.exe %1:\%2
  46. copy ddata.exe %1:\2%
  47.  
  48. %1:
  49. cd %1:\%2
  50.  
  51. goto success
  52.  
  53. :noPath
  54.  
  55. for %%A in (A B C D E F G H I J K L a b c d e f g h i j k l) do if !%1 == !%%A goto okay
  56.  
  57. goto help
  58.  
  59. :okay
  60.  
  61. for %%A in (\ :) do if !%1 == !%%A goto help
  62.  
  63. echo .                         INSTALLING TO DRIVE %1:\DDOWNS
  64. echo .
  65. echo .                          DIGITAL DOWNS INSTALLATION
  66. echo .
  67. md %1:\ddowns
  68. echo .                                COPYING FILES
  69. if exist ddata.exe goto copyAllTwo 
  70. copy  ddowns.exe %1:\ddowns
  71.  
  72. :insert2
  73.  
  74. cls
  75. echo .
  76. echo Insert disk 2 in drive and push a key to continue or
  77. echo contol C to quit installation.
  78. echo .
  79. echo .
  80. PAUSE
  81.  
  82. if not exist ddlibs.exe goto insert2
  83.  
  84. echo Copying files from disk 2.
  85.  
  86. copy ddlibs.exe %1:\ddowns
  87. copy ddata.exe %1:\ddowns
  88.  
  89. %1:
  90. cd %1:\ddowns
  91.  
  92. goto success
  93.  
  94. :help
  95. cls
  96. @echo off
  97. echo .
  98. echo .                       DIGITAL DOWNS INSTALL UTILTIY
  99. echo .
  100. echo .    This program must be installed to a hard drive.  To install this
  101. echo .    program to C drive, you would type "INSTALL C".  This will put the
  102. echo .    game in the directory "DDOWNS".  If you wish to install this
  103. echo .    game to a different drive or directory, type........
  104. echo .
  105. echo .    "INSTALL (drive letter) (name of directory)"
  106. echo .
  107. echo .    EXAMPLE: to install to D drive in the directory GAMES type....
  108. echo .
  109. echo .                            "INSTALL D GAMES"
  110. echo .
  111. echo .    NOTE: Do not include the ":" after the drive letter or the "\" for
  112. echo .    a directory.
  113. goto end
  114.  
  115. :noFile
  116. cls
  117. echo .
  118. echo .                         PLACE DISK 1 IN DRIVE
  119. echo .
  120. echo .    Sorry, the file "DDOWNS.EXE" is not on this disk.  This file must
  121. echo .    be installed first, change disks and reattempt installation.
  122.  
  123. goto end
  124.  
  125. :msg
  126. cls
  127. echo .              AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
  128. echo .
  129. echo .    Sorry, at least one file required to run DIGITAL DOWNS is missing. Your
  130. echo .    hard disk may be too full to allow for all files to be decompressed or
  131. echo .    your souce disk may be bad.  Type "PACKLIST.TXT" for a listing of files
  132. echo .    required for this program.  You must have at least 3.5 mega bytes of
  133. echo .    Hard Disk space for successful installation.
  134. goto  end
  135.  
  136. :copyAllOne
  137.  
  138. copy  *.exe %1:\%2
  139. %1:
  140. cd %1:\%2
  141.  
  142. goto success
  143.  
  144. :copyAllTwo
  145.  
  146. copy  *.exe %1:\ddowns
  147.  
  148. %1:
  149. cd %1:\ddowns
  150.  
  151. goto success
  152. :success
  153.  
  154. cls
  155. echo .
  156. echo .
  157. echo .                             DECOMPRESSING FILES
  158. echo .
  159.  
  160. ddowns.exe
  161. ddlibs.exe
  162. ddata.exe
  163. DEL ddowns.exe
  164. DEL ddlibs.exe
  165. DEL ddata.exe
  166.  
  167. @echo off
  168. cls
  169. if not exist dd.exe goto msg
  170. if not exist s.d goto msg
  171.  
  172. echo .
  173. echo .
  174. echo .                             INSTALLATION COMPLETE
  175. echo .                         TYPE "DD" TO RUN DIGITAL DOWNS
  176. echo .                                      or
  177. echo .                    "RACEBOOK" TO SEE THE GAME DOCUMENTATION
  178.  
  179. :end
  180.  
  181.