home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / cc252upd.zip / cc252upd.cmd next >
OS/2 REXX Batch file  |  1998-07-28  |  4KB  |  125 lines

  1. @echo off
  2. echo Ctrl-Alt-Del Commander 2.52 Update Procedure
  3. echo (C) 1995-1998 Perez Computing Services.  All Rights Reserved.
  4. echo This updates Ctrl-Alt-Del Commander 2.50 and 2.51 to 2.52.
  5.  
  6. IF NOT EXIST CADCMDR.EXE GOTO DIRECTIONS
  7. IF NOT EXIST PATCH\CC251252.PIT GOTO DIRECTIONS
  8. IF NOT EXIST PATCH\CC250252.PIT GOTO DIRECTIONS
  9. IF NOT EXIST PATCH\PK250252.PIT GOTO DIRECTIONS
  10. IF NOT EXIST PATCH\SL250252.PIT GOTO DIRECTIONS
  11. IF NOT EXIST PATCH\SL251252.PIT GOTO DIRECTIONS
  12. IF NOT EXIST CCPRUNE.EXE GOTO DIRECTIONS
  13. IF NOT EXIST PATCHIT.EXE GOTO DIRECTIONS
  14.  
  15. :PATCHIT
  16. md archive
  17. echo Archiving version 2.50 or 2.51 to the \CADCMDR\archive directory
  18. copy CADCMDR.EXE archive > NUL
  19. copy PKM_DMN.EXE archive > NUL
  20. copy CADCSTAT.EXE archive > NUL
  21. copy CADCMDR.EXE UPDATE > NUL
  22. copy PKM_DMN.EXE UPDATE > NUL
  23. copy CADCSTAT.EXE UPDATE > NUL
  24. cd update
  25.  
  26. REM Try to update from 2.50 to 2.52
  27. echo PCS PatchIt (tm) for OS/2 patching CADCMDR.EXE
  28. PATCHIT ..\PATCH\CC250252.PIT /Q
  29. IF ERRORLEVEL 4 GOTO CC_TRY_NEXT_VERSION
  30. IF ERRORLEVEL 1 GOTO CC_FAILURE
  31. del CADCMDR.PBK
  32. GOTO PK_PATCH
  33.  
  34. REM Try update from 2.51 to 2.52
  35. :CC_TRY_NEXT_VERSION
  36. PATCHIT ..\PATCH\CC251252.PIT /Q
  37. IF ERRORLEVEL 1 GOTO CC_FAILURE
  38. del CADCMDR.PBK
  39.  
  40. REM Update PKM_DMN.EXE (only 1 update from 2.50 to 2.52)
  41. :PK_PATCH
  42. echo PCS PatchIt (tm) for OS/2 patching PKM_DMN.EXE
  43. PATCHIT ..\PATCH\PK250252.PIT /Q
  44. IF ERRORLEVEL 1 GOTO PK_FAILURE
  45. del PKM_DMN.PBK
  46.  
  47.  
  48. REM Try to update status line from 2.50 to 2.52
  49. echo PCS PatchIt (tm) for OS/2 patching CADCSTAT.EXE
  50. PATCHIT ..\PATCH\SL250252.PIT /Q
  51. IF ERRORLEVEL 4 GOTO SL_TRY_NEXT_VERSION
  52. IF ERRORLEVEL 1 GOTO SL_FAILURE
  53. del CADCSTAT.PBK
  54. GOTO DONE_PATCH
  55.  
  56. REM Try to update from 2.51 to 2.52
  57. :SL_TRY_NEXT_VERSION
  58. PATCHIT ..\PATCH\SL251252.PIT /Q
  59. IF ERRORLEVEL 1 GOTO SL_FAILURE
  60. del CADCSTAT.PBK
  61.  
  62. :DONE_PATCH
  63. GOTO GOODFINISH
  64.  
  65.  
  66. :SL_FAILURE
  67. cd ..
  68. echo You're update was nearly complete when an error was detected
  69. echo while trying to update the CAD Commander Status Line.  CAD Commander
  70. echo will function correctly with the 2.50 or 2.51 Status Line.  However,
  71. echo you should contact PCS technical support via the PCS website and
  72. echo provide the following:
  73. echo.
  74. echo * Your name
  75. echo * Your CAD Commander serial number
  76. echo * Your CAD Commander version
  77. echo * The date, time, and size of the file \CADCMDR\CADCSTAT.EXE
  78. echo.
  79. echo Please shutdown and restart your system to continue updating to
  80. echo CAD Commander 2.52.
  81. GOTO END
  82.  
  83. :CC_FAILURE
  84. set ERRMOD=CAD Commander PM Shell
  85. GOTO FAILURE
  86.  
  87. :PK_FAILURE
  88. set ERRMOD=CAD Commander Daemon
  89. GOTO FAILURE
  90.  
  91.  
  92. :FAILURE
  93. cd ..
  94. echo Error patching %ERRMOD%.
  95. echo An error was detected applying this patch to CAD Commander 2.50 or
  96. echo CAD Commander 2.51.  Please retry the process after verifying you are
  97. echo running CAD Commander 2.50 (CADCMDR.EXE file date: 1-1-98, size 61025).
  98. echo or CAD Commander 2.51 (CADCMDR.EXE file date: 1-20-98, size 60513).
  99. echo.
  100. GOTO DIRECTIONS
  101.  
  102.  
  103. :GOODFINISH
  104. echo Cleaning up patch files...
  105. cd ..
  106. del patch\*.PIT
  107. echo.
  108. echo CAD Commander 2.52 updated successfully.  Please shutdown and reboot
  109. echo your system to finish the update process.
  110. echo.
  111. echo Also please review the README.252 that describes the changes made
  112. echo to CAD Commander.
  113. GOTO END
  114.  
  115. :DIRECTIONS
  116. echo You must start this program from your \CADCMDR directory.
  117. echo Be sure to unzip the CC252UPD.ZIP file into your \CADCMDR directory.
  118. echo Then type CC252UPD to update the CAD Commander 2.5x software.
  119. echo When the update finishes, shutdown and restart your system.
  120. GOTO END
  121.  
  122. :END
  123.  
  124.  
  125.