home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 November / ISSUE21.iso / mw2.bat < prev    next >
DOS Batch File  |  1995-08-25  |  2KB  |  89 lines

  1. @echo off
  2. CD \GAMES\MW2
  3. cls
  4. if "%1"=="" goto format
  5. if "%2"=="" goto format
  6. if not exist %1gwydion.jll goto nofile
  7. echo.
  8. echo You are about to install the MechWarrior 2 demo.
  9. echo.
  10. echo This demo will be installed to your %2 drive in
  11. echo the \MW2DEMO directory from the disk in your %1 drive.
  12. echo.
  13. echo Do you want to proceed with the installation?
  14. echo.
  15. echo     1 = Yes, Please install the demo.
  16. echo     2 = No, I don't want to install the demo at this time.
  17. echo.
  18. choice /c:12
  19. if errorlevel 2 goto installnot
  20. if errorlevel 1 goto installit
  21.  
  22. :installit
  23. deltree %2\mw2demo
  24. md %2\mw2demo
  25. %2
  26. cd \mw2demo
  27. %1mw2demo
  28. cls
  29.  
  30. if not exist %2\mw2demo\vfx\vesa768.dll goto spaceout
  31.  
  32. echo.
  33. echo Installation complete.  
  34. echo.
  35. echo.
  36. %2
  37. cd\mw2demo
  38. setup
  39. goto end
  40. cls
  41.  
  42. :installnot
  43. cls
  44. echo.
  45. echo Installation cancelled.
  46. echo.
  47. echo Thank you for using the MechWarrior 2 demo.
  48. echo.
  49. goto end
  50.  
  51. :format
  52. echo.
  53. echo You must use the following format to install MechWarrior 2:
  54. echo.
  55. echo    MW2 [drive to install from] [drive to install to]
  56. echo.
  57. echo For instance, if your CD-ROM is located in drive D: and you wish to
  58. echo install MechWarrior 2 to drive C:, you would type the following:
  59. echo.
  60. echo     MW2 D: C:
  61. echo.
  62. echo.
  63. cd \
  64. goto end
  65.  
  66. :nofile
  67. echo.
  68. echo Install could not find the MechWarrior 2 demo on the %1 drive.
  69. echo Please check your drive letters and run install again.
  70. echo.
  71. echo.
  72. goto end
  73.  
  74. :spaceout
  75. echo.
  76. echo You are out of disk space.  You need about 25 MB's of hard drive
  77. echo space on your %2 drive to install the MechWarrior 2 demo.  Please
  78. echo clear enough space or install to another drive with enough free
  79. echo disk space.  The MechWarrior 2 demo directory will now be deleted.
  80. echo.
  81. echo.
  82. %2
  83. cd \
  84. deltree mw2demo
  85. goto end
  86.  
  87. :end
  88. @echo on
  89.