home *** CD-ROM | disk | FTP | other *** search
/ Adventures in Heaven 2 / adventuresinheaven2powergamesfordosandwindows.iso / dos / casino / ubj / install.bat < prev    next >
DOS Batch File  |  1993-12-02  |  4KB  |  163 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. goto end
  64.  
  65. :noFile
  66. cls
  67. echo .
  68. echo .              AN ERROR HAS OCCURRED, INSTALLATION WAS UNSUCCESSFUL
  69. echo .
  70. echo .    Sorry, the file "ULTIMABJ.EXE" is not on this disk. This file must  
  71. echo .    on your distribution diskette for sucessfull installation of this 
  72. echo .    game.
  73. echo .
  74. echo .
  75. goto end
  76.  
  77. :gameErrorMsg
  78. cls
  79. echo .           AN ERROR HAS OCCURRED, GAME INSTALLATION WAS UNSUCCESSFUL
  80. echo .
  81. echo .    Sorry, at least one file required to run ULTIMATE BLACKJACK is missing.
  82. echo .    The disk may be too full to allow for all files to be decompressed or
  83. echo .    your souce disk may be bad.  Type "PACKLIST.TXT" for a listing of files
  84. echo .    required for this program.  You must have at least 4.5 mega bytes of
  85. echo .    Hard Disk space for successful installation.
  86. goto  end
  87.  
  88. :voiceErrorMsg
  89. cls
  90. echo .
  91. echo .
  92. echo .        AN ERROR HAS OCCURRED, VOICE PACK INSTALLATION WAS UNSUCCESSFUL
  93. echo .
  94. echo .    The disk may be too full to allow for all files to be decompressed or
  95. echo .    your souce disk may be bad.  Type "PACKLIST.TXT" for a listing of files
  96. echo .    required for this program.  You must have at least 4.5 mega bytes of
  97. echo .    Hard Disk space for successful installation.
  98. echo .    
  99. echo .    YOUR ULTIMATE BLACKJACK GAME SHOULD FUNCTION BUT THE SOUND BLASTER VOICES
  100. echo .    may not work.  Free up some hard disk space and reattempt installation.
  101. echo .
  102. echo .
  103.  
  104. goto end
  105.  
  106. :success1
  107.  
  108. cls
  109. echo .
  110. echo .
  111. echo .                             DECOMPRESSING FILES
  112. echo .
  113. %1:
  114. cd %1:\%2
  115. if not exist ULTIMABJ.EXE goto noFile
  116. ultimabj.exe
  117. DEL ultimabj.exe
  118.  
  119. @echo off
  120. cls
  121. if not exist BLKJACK2.L goto gameErrorMsg
  122. goto doneMsg
  123.  
  124. :success2
  125.  
  126. cls
  127. echo .
  128. echo .
  129. echo .                             DECOMPRESSING FILES
  130. echo .
  131. %1:
  132. cd %1:\BLKJACK
  133. if not exist ULTIMABJ.EXE goto noFile
  134. ultimabj.exe
  135. DEL ultimabj.exe
  136.  
  137. @echo off
  138. cls
  139. if not exist BLKJACK2.L goto gameErrorMsg
  140.  
  141. :doneMsg
  142.  
  143. echo .
  144. echo .
  145. echo .                             INSTALLATION COMPLETE
  146. echo .                    TYPE  "UBJ" TO RUN ULTIMATE BLACKJACK
  147. echo .                                    or
  148. echo .                  TYPE "BJMANUAL" TO READ GAME DOCUMENTATION
  149. echo .
  150. echo .
  151. echo .  NOTE: This game will attempt to use extended memory if it is detected.  
  152. echo .  If the game will not run or causes system lock up or behaves erratically,
  153. echo .  there may be a conflict with your exended memory manager.  If this is 
  154. echo .  the case, use the command line switch "/N" when starting the program. To 
  155. echo .  use this switch to eliminate extended memory calls, type "UBJ /N" then push
  156. echo .  return.  This will force the game to use conventional memory only. When 
  157. echo .  using only conventional memory, the game manual may be unavailable with the 
  158. echo .  F1 key while playing the game.
  159. echo .
  160. echo .
  161.  
  162. :end
  163.