home *** CD-ROM | disk | FTP | other *** search
/ Unprotect 6 / Unprotect-6.0.iso / update / apchptch / update.bat < prev   
Encoding:
DOS Batch File  |  1996-05-07  |  2.3 KB  |  89 lines

  1. @echo off
  2. @rem
  3. @rem Apache Patch update.bat April 25 1996
  4. @rem Modified 5/1/1996 to avoid problems when installing
  5. @rem from drives other than A:
  6. @rem
  7. cls
  8. @echo #############################################################################
  9. @echo #############################################################################
  10. @echo ###                                                                       ###
  11. @echo ###                       APACHE '95 RELEASE April 25 1996                ###
  12. @echo ###                                                                       ###
  13. @echo #############################################################################
  14. @echo #############################################################################
  15. @echo .
  16.  
  17. if not exist update.bat goto wrongdrv
  18. @echo Copying the new apache executable... 
  19.  
  20. if not exist c:\di\apache\apache95.exe goto failed
  21. copy prefs.cfg c:\di\apache\prefs.cfg /Y
  22. copy apache95.exe c:\di\apache\apache95.exe /Y
  23. copy apache.bat c:\di\apache\apache.bat /Y
  24. copy readme.txt c:\di\apache\readme.txt /Y
  25.  
  26. if not exist c:\di\apache\missdata\110.dta md c:\di\apache\missdata
  27.  
  28. @echo Copying revised mission file
  29. copy 110.dta c:\di\apache\missdata\110.dta /y
  30.  
  31. goto exit
  32.  
  33. :failed
  34.  
  35. if x%1==x goto failed2
  36.  
  37. if not exist %1\apache95.exe goto failed2
  38. copy prefs.cfg %1\prefs.cfg /Y
  39. copy apache95.exe %1\apache95.exe /Y
  40. copy apache.bat %1\apache.bat /Y
  41. copy readme.txt %1\readme.txt /Y
  42.  
  43. if not exist %1\missdata\miss110.dta md %1\missdata
  44.  
  45. @echo Copying revised mission file
  46. copy 110.dta %1\missdata\110.dta /y
  47.  
  48. goto exit
  49.  
  50.  
  51. goto end
  52.  
  53. :wrongdrv
  54. echo Error: Cannot find patch files.
  55. echo Run the update program from the diskette drive
  56. echo that contains the Apache patch disk.
  57. echo For example, if A: is your 3 1/2 drive, type:
  58. echo   a:  then   update.
  59. echo"
  60. echo                    THE APACHE PATCH HAS NOT BEEN INSTALLED!
  61. echo"
  62. echo"
  63. goto end
  64.  
  65.  
  66.  
  67. :failed2
  68.  
  69. echo Apache is not installed in default directory (c:\di\apache)!
  70. echo Run the update program with the Apache directory specified.
  71. echo example: update c:\games\di\apache
  72. echo"
  73. echo"
  74. echo                    THE APACHE PATCH HAS NOT BEEN INSTALLED!
  75. echo"
  76. echo"
  77. goto end
  78.  
  79. :exit
  80.  
  81. rem 
  82. rem complete
  83. rem
  84.  
  85. @echo .
  86. @echo Update complete.
  87.  
  88. :end
  89.