home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 27 Fixes20 / 27-Fixes20.zip / 21wpsf.zip / APPLYFIX.CMD next >
OS/2 REXX Batch file  |  1993-06-18  |  1KB  |  34 lines

  1. @echo off
  2. if .%1==. goto usage
  3. if exist %1\os2\install\srv2.log goto errorinstalled
  4. if not exist %1\os2\dll goto errorhandle
  5. md %1\os2 2> nul
  6. md %1\os2\archive 2> nul
  7. md %1\os2\archive\os2 2> nul
  8. md %1\os2\archive\os2\dll 2> nul
  9. echo Backing up %1\OS2\DLL\PMWP.DLL  to  %1\OS2\ARCHIVE\OS2\DLL\PMWP.DLL
  10. copy %1\os2\dll\pmwp.dll %1\os2\archive\os2\dll 2> nul
  11. if not errorlevel 0 goto errorhandle
  12. copy patch.rtp %1\os2\dll\pmwp.rtp > nul
  13. if not errorlevel 0 goto errorhandle
  14. patch /Q -f:pmwp.dll %1\os2\dll patch.rtp
  15. if not errorlevel 0 goto errorhandle
  16. echo %1\os2\archive > %1\os2\install\srv2.log
  17. echo. >> %1\os2\install\srv2.log
  18. echo %1\os2\dll\pmwp.dll >> %1\os2\install\srv2.log
  19. echo 000000000112:00:0006/18/9300011459491334352254RNFD >> %1\os2\install\srv2.log
  20. goto end
  21. :usage
  22. echo Usage:
  23. echo        Applyfix c:
  24. echo -Where c: is your os2 install drive
  25. goto end
  26. :errorhandle
  27. echo An error occurred while trying to apply the fix.
  28. echo Please call service for help
  29. goto end
  30. :errorinstalled
  31. echo The fix has already been installed on your system.
  32. :end
  33.  
  34.