home *** CD-ROM | disk | FTP | other *** search
/ Unprotect 6 / Unprotect-6.0.iso / update / bak102 / update.bat < prev    next >
Encoding:
DOS Batch File  |  1993-10-20  |  2.3 KB  |  70 lines

  1. echo off
  2. cls
  3. if not exist krondor.exe goto tell
  4. if not exist patch goto already
  5. ren patch patch.exe
  6. version
  7. if errorlevel == 3 goto del
  8. if errorlevel == 2 goto do_11
  9. echo ╔═══════════════════════════════════════╗
  10. echo ║    Updating Betrayal At Krondor       ║
  11. echo ║        1.0 to version 1.02            ║
  12. echo ║     (This will take some time)        ║
  13. echo ║                                       ║
  14. echo ║   PATCH Version 1.01 - .RTPatch(TM)   ║
  15. echo ║        Software Update System         ║
  16. echo ║ (C) Copyright Pocket Soft, Inc., 1991 ║
  17. echo ║          All Rights Reserved          ║                       
  18. echo ╚═══════════════════════════════════════╝
  19. patch . p10 >nul
  20. version
  21. if errorlevel == 2 goto del
  22. if errorlevel == 1 goto fail
  23. :do_11
  24. echo ╔═══════════════════════════════════════╗
  25. echo ║    Updating Betrayal At Krondor       ║
  26. echo ║       1.01 to version 1.02            ║
  27. echo ║     (This will take some time)        ║
  28. echo ║                                       ║
  29. echo ║   PATCH Version 1.01 - .RTPatch(TM)   ║
  30. echo ║        Software Update System         ║
  31. echo ║ (C) Copyright Pocket Soft, Inc., 1991 ║
  32. echo ║          All Rights Reserved          ║                       
  33. echo ╚═══════════════════════════════════════╝
  34. patch . p101 >nul
  35. version
  36. if errorlevel == 3 goto del
  37. if errorlevel == 2 goto fail
  38. :del
  39. echo nonrotatingmap = 1 >>resource.cfg
  40. del p10.*
  41. del p101.*
  42. del patch.exe
  43. del version.exe
  44. del info.txt
  45. del info.bat
  46. echo ╔═════════════════════════╗
  47. echo ║   Update Complete!      ║
  48. echo ╚═════════════════════════╝
  49. goto end
  50. :tell
  51. echo To update Betrayal At Krondor to version 1.02 please copy all the files
  52. echo in this directory to the "Betrayal at Krondor" directory on your hard  
  53. echo drive.  Go to the Krondor directory and type "UPDATE" to begin the patch.
  54. echo Type "INFO" for more information.
  55. goto end
  56. :already
  57. echo The update process has already been run or not all files were copied
  58. echo from the update disk.
  59. goto end
  60. :fail
  61. echo .
  62. echo .
  63. echo The patch could not be installed.  Most likely you will need to free
  64. echo up some additional disk space in order to patch Betrayal At Krondor.
  65. echo Once the patch process is complete the additional disk space will not
  66. echo be required.
  67. ren patch.exe patch
  68. :end
  69.  
  70.