home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
netdorup.zip
/
ip20073.zip
/
NDCSD5.DSK
/
VENDUPD.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1994-11-28
|
2KB
|
49 lines
/**/
call RxFuncAdd 'SYSDRIVEMAP', 'REXXUTIL', 'SYSDRIVEMAP'
call RxFuncAdd 'SYSFILETREE', 'REXXUTIL', 'SYSFILETREE'
found='N'
vwork='N'
map = SysDriveMap(,'LOCAL')
do while map<>''
parse var map letter map
search=letter||'SYSLEVEL.VND'
rc = SysFileTree(search, 'file', 'FSO')
if file.0>0 then
do
found='Y'
do i=1 to file.0
if TRANSLATE(SUBSTR(file.i, 4, 7))='VNDWORK' then
do
vwork='Y'
vletter=letter
end
end
end
end
if found='Y' then
do
'@ECHO OFF'
if vwork='Y' then
do
say '************** Updating Vendor files. Please wait **************'
'a:\unpack2 a:\fix\vnd\vndstart.ex_ 'vletter'\vndwork\netbios\ > 'vletter'\vndwork\temp.log'
'a:\unpack2 a:\fix\vnd\vndsrvr.ex_ 'vletter'\vndwork\netbios\ > 'vletter'\vndwork\temp.log'
'del 'vletter'\vndwork\tcpip\netbios.dum'
'a:\unpack2 a:\fix\vnd\vndtstrt.ex_ 'vletter'\vndwork\tcpip\ > 'vletter'\vndwork\temp.log'
'a:\unpack2 a:\fix\vnd\vndtsrvr.ex_ 'vletter'\vndwork\tcpip\ > 'vletter'\vndwork\temp.log'
'a:\unpack2 a:\fix\vnd\vndnmon.ex_ 'vletter'\vndwork\netbios\ > 'vletter'\vndwork\temp.log'
'a:\unpack2 a:\fix\vnd\vndtmon.ex_ 'vletter'\vndwork\tcpip\ > 'vletter'\vndwork\temp.log'
'del 'vletter'\vndwork\temp.log'
end
say '***************************************************************'
say '************** VENDOR files successfully updated **************'
say '***************************************************************'
end
else
do
say
say '****** This is not a Vendor Server. No further updates are required *******'
say
end
exit