home *** CD-ROM | disk | FTP | other *** search
/ Season's Greetings & Games Unlimited / UGOLD_cd2.iso / ultbljck / install.bat < prev    next >
DOS Batch File  |  1994-06-12  |  5KB  |  166 lines

  1. @echo off
  2. cls
  3.  
  4. if not exist ULTIMABJ.EXE goto noFile
  5.  
  6. if "%1" == "" goto help
  7. if "%2" == "" goto noPath
  8.  
  9. :path
  10.  
  11. 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
  12. goto help
  13.  
  14. :okay1
  15.  
  16. for %%A in ( : \ ) do if !%2 == !%%A goto help
  17.  
  18. echo .                           INSTALLING TO DRIVE %1:\%2
  19. echo .
  20. echo .                        ULTIMATE BLACKJACK INSTALLATION
  21. echo .
  22. md %1:\%2
  23. echo .                                COPYING FILES
  24. copy  *.exe %1:\%2
  25. goto success1
  26.  
  27. :noPath
  28.  
  29. 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
  30.  
  31. goto help
  32.  
  33. :okay
  34.  
  35. for %%A in (\ :) do if !%1 == !%%A goto help
  36.  
  37. echo .                         INSTALLING TO DRIVE %1:\BLKJACK
  38. echo .
  39. echo .                         ULTIMATE BLACKJACK INSTALLATION
  40. echo .
  41. md %1:\blkjack
  42. echo                                  COPYING FILES
  43. copy  *.exe %1:\blkjack
  44.  
  45. goto success2
  46.  
  47. :help
  48. cls
  49. @echo off
  50. echo .
  51. echo .                      ULTIMATE BLACKJACK INSTALL UTILITY
  52. echo .
  53. echo .    This program must be installed to a hard drive.  To install this
  54. echo .    program to C drive, you would type "INSTALL C".  This will put the
  55. echo .    game in the directory "BLKJACK".  If you wish to install this
  56. echo .    game to a different drive or directory, type.....
  57. echo .
  58. echo .    "INSTALL (drive letter) (name of directory)"
  59. echo .
  60. echo .    EXAMPLE: to install to D drive in the directory GAMBLERS type....
  61. echo .
  62. echo .                           "INSTALL D GAMBLERS"
  63. echo .
  64. echo .    Do not include a colon ":" after the drive letter.
  65. echo .
  66. goto end
  67.  
  68. :noFile
  69. cls
  70. echo .
  71. echo .              AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
  72. echo .
  73. echo .    Sorry, the file "ULTIMABJ.EXE" is not on this disk. This file must  
  74. echo .    on your distribution diskette for sucessfull installation of this 
  75. echo .    game.
  76. echo .
  77. echo .
  78. goto end
  79.  
  80. :gameErrorMsg
  81. cls
  82. echo .           AN ERROR HAS OCCURRED, GAME INSTALLATION WAS UNSUCCESSFUL
  83. echo .
  84. echo .    Sorry, at least one file required to run ULTIMATE BLACKJACK is missing.
  85. echo .    The disk may be too full to allow for all files to be decompressed or
  86. echo .    your souce disk may be bad.  Type "PACKLIST.TXT" for a listing of files
  87. echo .    required for this program.  You must have at least 4.5 mega bytes of
  88. echo .    Hard Disk space for successful installation.
  89. goto  end
  90.  
  91. :voiceErrorMsg
  92. cls
  93. echo .
  94. echo .
  95. echo .        AN ERROR HAS OCCURRED, VOICE PACK INSTALLATION WAS UNSUCCESSFUL
  96. echo .
  97. echo .    The disk may be too full to allow for all files to be decompressed or
  98. echo .    your souce disk may be bad.  Type "PACKLIST.TXT" for a listing of files
  99. echo .    required for this program.  You must have at least 4.5 mega bytes of
  100. echo .    Hard Disk space for successful installation.
  101. echo .    
  102. echo .    YOUR ULTIMATE BLACKJACK GAME SHOULD FUNCTION BUT THE SOUND BLASTER VOICES
  103. echo .    may not work.  Free up some hard disk space and reattempt installation.
  104. echo .
  105. echo .
  106.  
  107. goto end
  108.  
  109. :success1
  110.  
  111. cls
  112. echo .
  113. echo .
  114. echo .                             DECOMPRESSING FILES
  115. echo .
  116. %1:
  117. cd %1:\%2
  118. if not exist ULTIMABJ.EXE goto noFile
  119. ultimabj.exe
  120. DEL ultimabj.exe
  121.  
  122. @echo off
  123. cls
  124. if not exist BLKJACK2.L goto gameErrorMsg
  125. goto doneMsg
  126.  
  127. :success2
  128.  
  129. cls
  130. echo .
  131. echo .
  132. echo .                             DECOMPRESSING FILES
  133. echo .
  134. %1:
  135. cd %1:\BLKJACK
  136. if not exist ULTIMABJ.EXE goto noFile
  137. ultimabj.exe
  138. DEL ultimabj.exe
  139.  
  140. @echo off
  141. cls
  142. if not exist BLKJACK2.L goto gameErrorMsg
  143.  
  144. :doneMsg
  145.  
  146. echo .
  147. echo .
  148. echo .                             INSTALLATION COMPLETE
  149. echo .                    TYPE  "UBJ" TO RUN ULTIMATE BLACKJACK
  150. echo .                                    or
  151. echo .                  TYPE "BJMANUAL" TO READ GAME DOCUMENTATION
  152. echo .
  153. echo .
  154. echo .  NOTE: This game will attempt to use extended memory if it is detected.  
  155. echo .  If the game will not run or causes system lock up or behaves erratically,
  156. echo .  there may be a conflict with your exended memory manager.  If this is 
  157. echo .  the case, use the command line switch "/N" when starting the program. To 
  158. echo .  use this switch to eliminate extended memory calls, type "UBJ /N" then push
  159. echo .  return.  This will force the game to use conventional memory only. When 
  160. echo .  using only conventional memory, the game manual may be unavailable with the 
  161. echo .  F1 key while playing the game.
  162. echo .
  163. echo .
  164.  
  165. :end
  166.