home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Games 12 / SPCD12.bin / levels / c&c / multi / ccactins.bat < prev    next >
Encoding:
DOS Batch File  |  1996-07-08  |  2.6 KB  |  98 lines

  1. @echo off
  2. cls
  3. echo This is the ACTION-Install-Routine V1.0
  4. echo              (ACTION V1.5)
  5. echo  
  6. if not exist action\action.txt md ACTION > NULL
  7. if exist action12.ini del action12.* > NULL
  8. copy action*.ini action > NULL
  9. copy action*.map action > NULL
  10. del action*.ini > NULL
  11. del action*.map > NULL
  12. echo Making Backup-file of GAME.DAT...
  13. if exist game.dad goto gex
  14. copy game.dat game.dad > NULL
  15. attrib game.dad +r
  16. echo Backup-file GAME.DAD created.
  17. goto w
  18. :gex
  19. echo Backup-file exists... no backup made.
  20. :w
  21. echo  
  22. echo Looking for existing ACTION-files...
  23. if exist ren_act.bat goto actex
  24. echo no previous version found.
  25. goto w1
  26. :actex
  27. echo previous version found. deleting...
  28. if exist edtdata2.c&c del edtdata*.c&c > NULL
  29. if exist multplay.pat del multplay.pat > NULL
  30. del ren_act.bat > NULL
  31. echo deleting finished.
  32. :w1
  33. echo  
  34. echo Looking for existing SCM??EA.*-files
  35. echo with ?? = 01,02,03,04,05...
  36. if exist scm01ea.ini goto delscm
  37. if exist scm02ea.ini goto delscm
  38. if exist scm03ea.ini goto delscm
  39. if exist scm04ea.ini goto delscm
  40. if exist scm05ea.ini goto delscm
  41. echo none found.
  42. goto w2
  43. :delscm
  44. echo files found. Deleting?
  45. echo NOTE: You can break now and rename these
  46. echo scens or this program will delete them!
  47. pause
  48. del scm01ea.* > NULL
  49. del scm02ea.* > NULL
  50. del scm03ea.* > NULL
  51. del scm04ea.* > NULL
  52. del scm05ea.* > NULL
  53. echo Deleting finished.
  54. :w2
  55. echo  
  56. echo Now updating GAME.DAT...
  57. ccactin1.exe
  58. if errorlevel 2 goto ende
  59. if errorlevel 1 goto fehler
  60. echo  
  61. echo Now Copying the Action-Scens to the right locations...
  62. copy action\action1!.ini scm01ea.ini > NULL
  63. copy action\action1!.map scm01ea.bin > NULL
  64. copy action\action13.ini scm02ea.ini > NULL
  65. copy action\action13.map scm02ea.bin > NULL
  66. copy action\action23.ini scm03ea.ini > NULL
  67. copy action\action23.map scm03ea.bin > NULL
  68. copy action\action33.ini scm04ea.ini > NULL
  69. copy action\action33.map scm04ea.bin > NULL
  70. copy action\action43.ini scm05ea.ini > NULL
  71. copy action\action43.map scm05ea.bin > NULL
  72. echo ready.
  73. echo  
  74. copy ccactins.bat action > NULL
  75. copy ccactin1.exe action > NULL
  76. copy changes.* action > NULL
  77. copy action.doc action > NULL
  78. copy action.txt action > NULL
  79. del ccactin1.exe > NULL
  80. del changes.* > NULL
  81. echo now the installation is finished.
  82. echo get ready for some ACTION!!!
  83. echo  
  84. echo (ignore the next line!)
  85. if exist action15.zip copy action15.zip action > NULL
  86. if exist action*.zip del action*.zip > NULL
  87. del NULL
  88. del ccactins.bat
  89. goto ende
  90. :fehler
  91. echo Please get an upgrade of your C&C with satisfy
  92. echo the needed conditions!
  93. echo  
  94. goto ende
  95. :ende
  96. del NULL
  97.  
  98.