home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 27 Fixes20
/
27-Fixes20.zip
/
21wpsf.zip
/
APPLYFIX.CMD
next >
Wrap
OS/2 REXX Batch file
|
1993-06-18
|
1KB
|
34 lines
@echo off
if .%1==. goto usage
if exist %1\os2\install\srv2.log goto errorinstalled
if not exist %1\os2\dll goto errorhandle
md %1\os2 2> nul
md %1\os2\archive 2> nul
md %1\os2\archive\os2 2> nul
md %1\os2\archive\os2\dll 2> nul
echo Backing up %1\OS2\DLL\PMWP.DLL to %1\OS2\ARCHIVE\OS2\DLL\PMWP.DLL
copy %1\os2\dll\pmwp.dll %1\os2\archive\os2\dll 2> nul
if not errorlevel 0 goto errorhandle
copy patch.rtp %1\os2\dll\pmwp.rtp > nul
if not errorlevel 0 goto errorhandle
patch /Q -f:pmwp.dll %1\os2\dll patch.rtp
if not errorlevel 0 goto errorhandle
echo %1\os2\archive > %1\os2\install\srv2.log
echo. >> %1\os2\install\srv2.log
echo %1\os2\dll\pmwp.dll >> %1\os2\install\srv2.log
echo 000000000112:00:0006/18/9300011459491334352254RNFD >> %1\os2\install\srv2.log
goto end
:usage
echo Usage:
echo Applyfix c:
echo -Where c: is your os2 install drive
goto end
:errorhandle
echo An error occurred while trying to apply the fix.
echo Please call service for help
goto end
:errorinstalled
echo The fix has already been installed on your system.
:end