home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 253.img / EVSWINC1.ZIP / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-05-03  |  4.5 KB  |  129 lines

  1. echo off
  2. cls
  3. if "%3" == "" goto Nodrive
  4. if %1 == a: goto Driveerst
  5. if %1 == A: goto Driveerst
  6. if %1 == b: goto Driveerst
  7. if %1 == B: goto Driveerst
  8. if %1 == c: goto Driveerst
  9. if %1 == C: goto Driveerst
  10. if %1 == d: goto Driveerst
  11. if %1 == D: goto Driveerst
  12. goto Nodrive
  13. :Driveerst
  14. if %2 == c: goto Testcard
  15. if %2 == C: goto Testcard
  16. if %2 == d: goto Testcard
  17. if %2 == D: goto Testcard
  18. if %2 == e: goto Testcard
  19. if %2 == E: goto Testcard
  20. if %2 == f: goto Testcard
  21. if %2 == F: goto Testcard
  22. if %2 == g: goto Testcard
  23. if %2 == G: goto Testcard
  24. if %2 == h: goto Testcard
  25. if %2 == H: goto Testcard
  26. if %2 == i: goto Testcard
  27. if %2 == I: goto Testcard
  28. if %2 == j: goto Testcard
  29. if %2 == J: goto Testcard
  30. if %2 == k: goto Testcard
  31. if %2 == K: goto Testcard
  32. goto Nodrive
  33. :Testcard
  34. if %3 == vga goto Cardvga
  35. if %3 == VGA goto Cardvga
  36. if %3 == ega goto Cardvga
  37. if %3 == EGA goto Cardvga
  38. if %3 == cga goto Cardcga
  39. if %3 == CGA goto Cardcga
  40. if %3 == mono goto Cardcga
  41. if %3 == MONO goto Cardcga
  42. :Nodrive
  43. echo Format: install [source drive]: [target drive]:
  44. echo Please specify the drive you want to install from and the drive on which
  45. echo you want to install 'EAST V WEST' both followed by a colon.
  46. echo To specify the graphics adaptor, use VGA, EGA, CGA and MONO.                                  
  47. echo For example: If you have installed a VGA card and you want to copy
  48. echo 'EAST V WEST' from drive a: to drive c: type                                                  
  49. echo INSTALL A: C: VGA     [Enter]
  50. echo         │  │   │
  51. echo         │  │   └────── VGA, EGA, CGA or MONO
  52. echo         │  └────────── target drive
  53. echo         └───────────── source drive                                                           
  54. goto end
  55.  
  56. :Cardvga
  57. cls
  58. echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  59. echo +                                                                             +
  60. echo +                                  EAST V WEST                                +
  61. echo +                                                                             +
  62. echo +                  'Berlin 1948' will be installed on drive %2.               +
  63. echo +           This program will create a subdirectory called %2\BERLIN          +
  64. echo +                             Press Ctrl-C to break.                          +
  65. echo +                                                                             +
  66. echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  67. pause
  68. if exist %2\BERLIN\*.* goto VExists
  69. mkdir %2\BERLIN
  70. goto VCopynow
  71. :VExists
  72. echo The directory BERLIN on drive %2 already exists.
  73. echo Press Ctrl-C now if you don't want to overwrite this directory.
  74. pause
  75. :VCopynow
  76. echo Hard disk install...
  77. copy v %2\berlin > NUL
  78. copy berlin.bat %2\berlin > NUL
  79. copy vgame.exe %2\berlin > NUL
  80. copy vvor.exe %2\berlin > NUL
  81. copy director.ibm %2\berlin > NUL
  82. copy stream0.ibm %2\berlin > NUL
  83. copy install.bat %2\berlin > NUL
  84. copy mbf.bat %2\berlin > NUL
  85.  
  86. if not exist %2\BERLIN\stream0.ibm goto error
  87. %2
  88. cd %2\BERLIN
  89. mbf %1 %2 %3
  90. goto End
  91.  
  92. :Cardcga
  93. cls
  94. echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  95. echo +                                                                             +
  96. echo +                                  EAST V WEST                                +
  97. echo +                                                                             +
  98. echo +                  'Berlin 1948' will be installed on drive %2.               +
  99. echo +           This program will create a subdirectory called %2\BERLIN          +
  100. echo +                             Press Ctrl-C to break.                          +
  101. echo +                                                                             +
  102. echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  103. pause
  104. if exist %2\BERLIN\*.* goto CExists
  105. mkdir %2\BERLIN
  106. goto CCopynow
  107. :CExists
  108. echo The directory BERLIN on drive %2 already exists.
  109. echo Press Ctrl-C now if you don't want to overwrite this directory.
  110. pause
  111. :CCopynow
  112. echo Hard disk install...
  113. copy c %2\berlin > NUL
  114. copy berlin.bat %2\berlin > NUL
  115. copy director.ibm %2\berlin > NUL
  116. copy stream0.ibm %2\berlin > NUL
  117. copy install.bat %2\berlin > NUL
  118. copy mbf.bat %2\berlin > NUL
  119. if not exist %2\BERLIN\stream0.ibm goto error
  120. %2
  121. cd %2\BERLIN
  122. mbf %1 %2 %3
  123. goto End
  124.  
  125. :Error
  126. echo                   An error has occured while installing 'EAST V WEST'.
  127. echo                         Please check if your hard disk is full.
  128.  
  129. :End