home *** CD-ROM | disk | FTP | other *** search
/ Collection Encyclopedia of Computer Games / GAME_ENCYCLOPAEDIA_VOLUME_1.iso / knights / 5install.bat < prev    next >
Encoding:
DOS Batch File  |  1990-11-02  |  1.5 KB  |  61 lines

  1. echo off
  2. REM this program installs for 5.25 (360K) disks only
  3. REM test for existing KNIGHTS subdirectory
  4. if EXIST %1:\MPS\KNIGHTS\title.exe  goto ClearDir
  5. if EXIST %1:\MPS\KNIGHTS\game.exe   goto ClearDir
  6. if EXIST %1:\MPS\KNIGHTS\game.cat   goto ClearDir
  7. if EXIST %1:\MPS\KNIGHTS\flight.exe goto ClearDir
  8. goto NewDir
  9.  
  10. :ClearDir
  11. REM  this will clear the subdirectory %1:\MPS\KNIGHTS
  12. cls
  13. echo Please answer "Y" to following question, it clears out old KNIGHTS files
  14. erase %1:\MPS\KNIGHTS\*.*
  15. goto CopyFiles
  16.  
  17. :NewDir
  18. REM  this installs new KNIGHTS subdirectory; errorlevel 0 means success
  19. MD %1:\MPS
  20. MD %1:\MPS\KNIGHTS
  21. if errorlevel 0 goto CopyFiles
  22. cls
  23. echo Error creating %1:\MPS\KNIGHTS subdirectory, do not use INSTALL program.
  24. echo You must install KNIGHTS OF THE SKY manually. Sorry. 
  25. goto End
  26.  
  27. :CopyFiles
  28. REM  this copies files from floppies in to %1:\MPS\KNIGHTS
  29.  
  30. cls
  31. echo Insert disk labeled "A" into your A: disk drive, then...
  32. PAUSE
  33. copy A:*.* %1:\MPS\KNIGHTS
  34. copy A:START.BAT %1:\MPS\KNIGHTS.BAT
  35.  
  36. cls
  37. echo Insert disk labeled "B" into your A: disk drive, then...
  38. PAUSE
  39. copy A:*.* %1:\MPS\KNIGHTS
  40.  
  41. cls
  42. echo Insert disk labeled "C" into your A: disk drive, then...
  43. PAUSE
  44. copy A:*.* %1:\MPS\KNIGHTS
  45.  
  46. cls
  47. echo Insert disk labeled "D" into your A: disk drive, then...
  48. PAUSE
  49. copy A:*.* %1:\MPS\KNIGHTS
  50.  
  51.  
  52. cls
  53. %1:
  54. cd \MPS
  55. echo Type "KNIGHTS" to begin game
  56.  
  57. :End
  58. echo INSTALL FINISHED
  59. echo Please ignore any "Batch file missing" message
  60. erase %1:\5install.bat
  61.