home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 351.img / COVERT-2.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-10-17  |  1KB  |  65 lines

  1. echo off
  2. REM this program installs for 5 1/4" disks only
  3. REM test for existing COVERT subdirectory
  4. if EXIST %1:\MPS\COVERT\game.exe goto ClearDir
  5. if EXIST %1:\MPS\COVERT\egraphic.exe goto ClearDir
  6. goto NewDir
  7.  
  8. :ClearDir
  9. REM  this will clear the subdirectory %1:\MPS\COVERT
  10. cls
  11. echo Please answer "Y" to following question,
  12. echo they clear out the old COVERT files.
  13. echo on
  14. erase %1:\MPS\COVERT\*.*
  15. echo off
  16. goto CopyFiles
  17.  
  18. :NewDir
  19. REM  this installs new COVERT subdirectory; errorlevel 0 means success
  20. MD %1:\MPS
  21. MD %1:\MPS\COVERT
  22. if errorlevel 0 goto MakeDir
  23. cls
  24. echo Error creating %1:\MPS\COVERT subdirectory, do not use INSTALL program.
  25. echo You must install COVERT ACTION manually. Sorry. 
  26. goto End
  27. :MakeDir
  28.  
  29. :CopyFiles
  30. REM  this copies files from floppies in to %1:\MPS\COVERT
  31.  
  32. cls
  33. echo Insert disk labelled "A" into your A: disk drive, then...
  34. PAUSE
  35. copy A:*.* %1:\MPS\COVERT
  36. copy a:covert.bat %1:\MPS
  37.  
  38. cls
  39. echo Insert disk labelled "B" into your A: disk drive, then...
  40. PAUSE
  41. copy A:*.* %1:\MPS\COVERT
  42.  
  43. if EXIST %1:\MPS\COVERT\TAC.EXE goto TwoDisks
  44.  
  45. cls
  46. echo Insert disk labelled "C" into your A: disk drive, then...
  47. PAUSE
  48. copy A:*.* %1:\MPS\COVERT
  49.  
  50. cls
  51. echo Insert disk labelled "D" into your A: disk drive, then...
  52. PAUSE
  53. copy A:*.* %1:\MPS\COVERT
  54.  
  55. :TwoDisks
  56. copy a:covert.bat %1:\mps
  57.  
  58. cls
  59. %1:
  60. cd \mps
  61. echo Type 'COVERT' to begin game.
  62. :End
  63. echo INSTALL FINISHED
  64.  
  65.