home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 August
/
VPR9708B.ISO
/
NSOS2
/
PLUGPKJP.EXE
/
sysfbkup.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1997-02-25
|
915b
|
41 lines
/* */
arg which os2path winpath windrive
which = strip(which)
if which = '' |,
os2path = '' |,
winpath = '' |,
windrive= '' then exit 0
if left(which,1) = '9' then which = 'V4'
else do
parse var which with .','which
which = strip(which)
if which = 'HALF' then which = 'HP'
else which = 'FP'
end
path.O = strip(os2path)'\DLL\'
path.M = strip(windrive)'\OS2\MDOS\'
path.W = strip(winpath)'\SYSTEM\'
file. = ''
file.1 = 'HPFPV4 O seamless dll'
file.2 = 'HPFPV4 W winsmsg dll'
file.3 = ' FPV4 W user exe'
file.4 = 'HPFP M vwin sys'
file.5 = 'HP W users scr'
i = 1
do while file.i <> ''
if pos( which, word(file.i,1) ) <> 0 then
do
index = word(file.i,2)
base = path.index||word(file.i,3)
if stream( base'.bak', 'c', 'query exists' ) = '' then
'copy' base'.'word(file.i,4) base'.bak'
end
i = i + 1
end