home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Pier Shareware 6
/
The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso
/
035
/
vxrxs21a.zip
/
patch.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1994-10-31
|
2KB
|
58 lines
/* PATCH.CMD
*/
say "Patching files..."
if( Stream("VROBJ.DLL", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\DLL\VROBJ.A"
end
if( Stream("VREDIT.DLL", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\DLL\VREDIT.A"
end
if( Stream("VRSED.DLL", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\DLL\VRSED.A"
end
if( Stream("MACROS.DLL", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\DLL\MACROS.A"
end
if( Stream("DBMACROS.DLL", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\DLL\DBMACROS.A"
end
if( Stream("README.INF", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\INF\README.A"
end
if( Stream("A2Z.INF", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\INF\A2Z.A"
end
if( Stream("PROGGUID.INF", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\INF\PROGGUID.A"
end
if( Stream("VRXEDIT.EXE", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\EXE\VRXEDIT.A"
end
if( Stream("PMDBG.EXE", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\EXE\PMDBG.A"
end
if( Stream("PMRUN.EXE", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\EXE\PMRUN.A"
end
if( Stream("PMEXE.EXE", "C","QUERY EXISTS" ) \= "" ) then do
"@bpatch -p APATCHES\EXE\PMEXE.A"
end
say 'A number of files are no longer needed.'
say 'Do you want to delete them (you will be prompted for each)?'
parse upper pull response
if( Left( response, 1 ) = 'Y' ) then do
say 'Delete BUILDVRX.FUL (y/n)?'
parse upper pull response
if( Left( response, 1 ) = 'Y' ) then 'erase BUILDVRX.FUL'
say 'Delete MACROS\SETTABS.VRM (y/n)?'
parse upper pull response
if( Left( response, 1 ) = 'Y' ) then 'erase MACROS\SETTABS.VRM'
say 'Delete MACROS\SETTABS.VRW (y/n)?'
parse upper pull response
if( Left( response, 1 ) = 'Y' ) then 'erase MACROS\SETTABS.VRW'
end
say "You can now erase the APATCHES directory"