home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 30 fixes_v / 30-fixes_v.zip / rz20bo.zip / RLZPATCH.BAT < prev   
DOS Batch File  |  1994-12-09  |  6KB  |  115 lines

  1. @echo off
  2. rem ===========================================================================
  3. rem  Apply CA-REALIZER OS2 2.0B USA Update Patch to the prior 2.0 or 2.0A version
  4. rem ===========================================================================
  5. rem
  6. rem      1.  ***  IMPORTANT  ***
  7. rem
  8. rem                 Manually backup your existing CA-Realizer 2.0 or 2.0A directory and the two CA-Realizer files 
  9. rem                 normally installed in your OS2 directory. ( \DLL\CABLE.DLL, \DLL\CA_PRINT.DLL 
  10. rem                        and \RLZRUN20\RLZRUN20.RTS)
  11. rem
  12. rem                 This batch file requires CABLE.DLL and \RLZRUN20\RLZRUN20.RTS be in the     
  13. rem                 OS2 directory where they were originally installed.    
  14. rem
  15. rem               The existing read.me file will be updated, if you want to preserve its contents you 
  16. rem                should back it up first.
  17. rem
  18. rem      2  To execute this batch file, on an OS2 DOS command line do the following:
  19. rem            -First change the drive/directory to that of the CA-REALIZER update files. 
  20. rem                             ( ex.  a:  or  CD\RLZUpdate)
  21. rem            -Type RLZPATCH.BAT Realizer Directory  Patch Directory  OS2 Directory
  22. rem                  ex. RLZPATCH.BAT  d:\REALIZER  a:  c:\OS2 
  23. rem             notes-      
  24. rem                Realizer Directory
  25. rem                      Specify both drive letter and directory name of the
  26. rem                      CA-Realizer 2.0 or 2.0A directory to be updated.
  27. rem                Patch Directory
  28. rem                      Specify both drive letter and directory of the patch files.(ie. d:\directory-name)
  29. rem                OS2 Directory
  30. rem                      Specify both drive letter and directory name of your OS2 operating system.
  31. rem      3. Copies two CA-Realizer files which are automatically installed in your OS2 directory to 
  32. rem                  your CA-Realizer directory.
  33. rem             - Copies the following 2 files  Cable.dll       Rlzrun20.rts
  34. rem             - If you have changed the location of these files then this batch file will fail.
  35. rem      4. Applys the update patch file to your main CA-Realizer 2.0 or 2.0A directory or a copy of it.
  36. rem      5. Copies the following patched files back to your OS2 directory to complete the update.
  37. rem                     Cable.dll       Rlzrun20.rts
  38. rem      6. If CA-Caret was installed, updates the CA-Caret files.
  39. rem        7. Lists the totals from the patch process.  
  40. rem      8. If you chose to work with a copy of your CA-Realizer directory, then manually update your 
  41. rem             group item to point to the new directory, or execute CA-Realizer from an OS2 command line
  42. rem             by entering realizer.exe. 
  43. rem        9. If necessary, move the CABLE.DLL and RLZRUN20.RTS files back to where you originally had them.
  44. rem
  45.  
  46. if  exist %1\realizer.exe goto Exit1
  47.     echo Missing or wrong path entered for CA-Realizer directory
  48.     echo syntax RLZPATCH.BAT CA-Realizer-Directory Patch-Directory OS2-Directory
  49.     echo %1
  50.     goto end
  51. :Exit1
  52. SET RLZUpdateDirectory=%1
  53. if  exist %2\patch.exe goto Exit2
  54.     echo Missing or wrong path entered for the update patch file
  55.     echo syntax RLZPATCH.BAT CA-Realizer-Directory Patch-Directory OS2-Directory
  56.     echo %2
  57.     goto end
  58. :Exit2
  59. SET RLZPatchDirectory=%2
  60.  
  61. if  exist %3\dll\pmgpi.dll  goto Exit3
  62.     echo Missing or wrong path entered for the OS2 directory
  63.     echo syntax RLZPATCH.BAT CA-Realizer-Directory Patch-Directory OS2-Directory
  64.     echo %3
  65.     goto end
  66. :Exit3
  67. SET RLZOS2Directory=%3
  68.  
  69. if  exist %3\dll\cable.dll goto Exit4
  70.     echo Cable.dll must reside in the \OS2\DLL\ directory
  71.     goto end
  72. :Exit4        
  73. if  exist %3\rlzrun20\rlzrun20.rts goto Exit5
  74.     echo \Rlzrun20\Rlzrun20.rts must reside in the \OS2 directory
  75.     goto end
  76. :Exit5
  77. if  not exist %2\patchapm.txt goto Exit6
  78.     erase %2\patchapm.txt
  79. :Exit6
  80. copy %RLZOS2Directory%\RLZRUN20\RLZRUN20.RTS   %RLZUpdateDirectory%
  81. echo copied %RLZOS2Directory%\RLZRUN20\RLZRUN20.RTS   %RLZUpdateDirectory%
  82.  
  83. copy %RLZOS2Directory%\dll\CABLE.DLL  %RLZUpdateDirectory%
  84. echo Copied %RLZOS2Directory%\CABLE.DLL  %RLZUpdateDirectory%
  85.  
  86. ECHO %RLZPatchDirectory%\patch.exe /NOPATHSEARCH  /s %RLZUpdateDirectory%  %RLZPatchDirectory%\Patchm.rtp
  87. %RLZPatchDirectory%\patch.exe /NOPATHSEARCH  /s %RLZUpdateDirectory%  %RLZPatchDirectory%\PatchM.rtp  >%RLZPatchDirectory%\patchapM.txt
  88.  
  89. copy %RLZUpdateDirectory%\RLZRUN20.RTS   %RLZOS2Directory%\RLZRUN20
  90. echo Copied  %RLZUpdateDirectory%\RLZRUN20.RTS   TO  %RLZOS2Directory%\RLZRUN20
  91. copy %RLZUpdateDirectory%\CABLE.DLL  %RLZOS2Directory%\dll
  92. echo Copied %RLZUpdateDirectory%\CABLE.DLL  TO  %RLZOS2Directory%\dll
  93.  
  94. echo -
  95. if  not exist %RLZUpdateDirectory%\readme.txt goto DoCAReadme
  96.         rename %RLZUpdateDirectory%\readme.txt readme.20x
  97. :DoCAReadme
  98.     copy %RLZPatchDirectory%\readme.txt %RLZUpdateDirectory%
  99.     echo copied %RLZPatchDirectory%\readme.txt %RLZUpdateDirectory%
  100. echo -
  101. echo After pressing Enter the update output logs will be displayed.
  102. echo Please check the totals listed with those in the read.me file.
  103. echo These totals can also be found in the patch directory in patchapm.txt.
  104.  
  105. pause
  106. call %RLZPatchDirectory%\List1.bat
  107. echo -----------------------------------------------------------------
  108. echo CA-Realizer Update to 2.0B is done.
  109. echo -----------------------------------------------------------------
  110. :End
  111. rem  Remove variables
  112. SET RLZUpdateDirectory=
  113. SET RLZPatchDirectory=
  114. SET RLZOS2Directory=
  115.