home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
m2vbbs11.zip
/
M2ZVBBS.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-07-14
|
2KB
|
60 lines
/***************************************************************************
Rexx VBBS-M2Zmodem Interface Written by Cunnus ShaktI @5092 Vnet.
Call The Premier OS/2 Support BBS - Moonflower/2 at 509-891-6148.
To Install this file, Change the Filein= , Fileout= & batchlist=
variables to reflect your main vbbs directory. Do not change the
filenames, just The paths. Then place this file in your main VBBS
directory along With a copy of M2ZModem transfer Protocol. These
comments must remain in order for this Rexx file to work correctly.
****************************************************************************/
arg node mode vpath
filein = "d:\vbbs\mz"node".log"
fileout = "d:\vbbs\dsz"node".log"
batchlist = "d:\vbbs\batch"node".lst"
call RxFuncAdd 'SysFileDelete' , 'RexxUtil' , 'SysFileDelete'
call SysFileDelete(fileout)
isbatch = substr(vpath,1,1)
if isbatch = '@' then call batch
if over = 'bye' then exit
call single
exit
single:
'm2zmodem.exe -f 1 -h -o mz'node'.log -n -s 'vpath
call linein filein
lineb = linein(filein)
parse var lineb "=>" filepath
linec = linein(filein)
parse var linec "=>" bc
parse var bc "=" cpsa
parse var cpsa cpsb "."
parse var cpsa "=" bytesa
bytes = right(bytesa,7)
cps = right(cpsb,5)
call lineout filein
call SysFileDelete(filein)
call LINEOUT fileout,'z'bytes' 19200 bps'cps' cps 0 errors 0 1024'filepath' 0'
return
batch:
do until vpath = " "
vpath = linein(batchlist)
if vpath = " " Then dlline = 'm2zmodem.exe -f 1 -h -n -s nofile'
else dlline = 'm2zmodem.exe -f 1 -h -o mz'node'.log -n -c -s 'vpath
dlline
call linein filein
lineb = linein(filein)
parse var lineb "=>" filepath
linec = linein(filein)
parse var linec "=>" bc
parse var bc "=" cpsa
parse var cpsa cpsb "."
parse var cpsa "=" bytesa
bytes = right(bytesa,7)
cps = right(cpsb,5)
call lineout filein
call SysFileDelete(filein)
call LINEOUT fileout,'z'bytes' 19200 bps'cps' cps 0 errors 0 1024'filepath' 0'
end
over = 'bye'
return