home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lansystk.zip
/
MPTSUTIL
/
APPLETS
/
CASLDLS.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-05-08
|
2KB
|
64 lines
/* Stripped by STRIPRX.EXE */
irc = RxFuncAdd("SysLoadFuncs","REXXUTIL","SysLoadFuncs")
irc = RxFuncQuery("SysLoadFuncs")
IF irc <> 0 THEN return 888
irc = SysLoadFuncs()
parse arg source target ifile
if ifile = '' then return 444
type.0 = 5
type.1 = 'S'
type.1.name = 'Server'
type.2 = 'R'
type.2.name = 'Requester'
type.3 = 'L'
type.3.name = 'Lan Support Program'
type.4 = 'D'
type.4.name = 'DOS LAN Services'
type.5 = 'N'
type.5.name = 'MPTS'
vol. = ''
count = chars(ifile)
filetext = charin(ifile,1,count)
end = 'FALSE'; error = 0
do while filetext <> '' & end = 'FALSE' & error = 0
parse value filetext with line '0D0A'x filetext
if line <> '' then do
parse value line with left "=" right
left = strip(left,'B',' ')
first = substr(left,1,1)
if datatype(substr(left,2,1)) = "CHAR" then end = 'TRUE'
else do
vollabel = strip(right,'B',' ')
n = vol.first.0
if n = '' then n = 0
n = n + 1
vol.first.0 = n
vol.first.n.suf = left
vol.first.n.lab = vollabel
end
end
end
do j = 1 to type.0
index = type.j
do i = 1 to vol.index.0
call doit
end
end
return error
doit:
dir = "IBM400"||vol.index.i.suf
'@mkdir 'target||'\'||dir
label = word(sysdriveinfo(strip(source,'T','\')),4)
do while label <> vol.index.i.lab
lrc = beep(400,300)
say ' '
say 'Insert 'type.j.name' - Disk 'i
say ' Enter to continue....'
say ' '
parse pull .
label = word(sysdriveinfo(strip(source,'T','\')),4)
end
'@xcopy 'strip(source,'T','\')||'\' target||'\'||dir' /s '
if rc > 1 then error = 999
return