home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
tagbet.zip
/
COPYFILE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-12
|
720b
|
34 lines
/*Copies files to local Copy-Directory (define in filepath.cfg)*/
arg com node filelist
call readpaths
line=linein(filelist)
do while line<>""
fname=word(line,1)
name=filespec("name",fname)
"copy "fname" "copypath"\"name
line=linein(filelist)
end
rc=lineout(filelist)
exit
/**************************/
readpaths:
pathfile="FILEPATH.CFG"
copypath="c:\copy"
do while lines(pathfile)
pathfileline=linein(pathfile)
pathfilekeyword=translate(word(pathfileline,1))
pathfileinfo=word(pathfileline,2)
select
when pathfilekeyword="COPYDIR" then do
copypath=pathfileinfo
end
otherwise
end
end
rc=lineout(pathfile)
return 0