home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
m2vbbs15.zip
/
M2UP.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-08-14
|
3KB
|
75 lines
/***************************************************************************
Rexx VBBS/2-M2Zmodem Interface Written by Cunnus ShaktI @1509509
Vnet. Call The Premier OS/2 Support BBS - Moonflower/2 at
509-891-6148. To Install this file, Change the 'Filein =' &
'Fileout =' 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
& the M2zmodem.msg file. The Command lines in vconfig should be as
follows:
Upload: M2UP.CMD %8 -ZR %3 %9
These comments must remain in this position in this file in order
for this Rexx file to work correctly.
****************************************************************************/
arg node mode upath vpath
/*********************Begin user configuration section*********************/
filein = "c:\vbbs\mz"node".log"
fileout = "c:\vbbs\dsz"node".log"
/*********************End user configuration section***********************/
call RxFuncAdd 'SysFileDelete' , 'RexxUtil' , 'SysFileDelete'
call SysFileDelete(fileout)
call SysFIleDelete(filein)
call uploadz
call lineout fileout
call lineout filein
call SysFileDelete(filein)
exit
uploadz:
parse var upath '.' isrep
parse var upath upath1 'TEMP'
upath2 = upath1'temp\'
/* vpath1 = vpath"\" */
othra = lastpos('\',upath)
othrb = othra + 1
othrpath = delstr(upath,othrb)
upatha = upath'\'
select
when isrep = 'REP' then comline = 'm2zmodem.exe -f 1 -h -o mz'node'.log -n -c -r 'upath2
/* when othra = '0' then comline = 'm2zmodem.exe -f 1 -h -o mz'node'.log -n -c -r 'vpath1 */
when vpath = ' ' then comline = 'm2zmodem.exe -f 1 -h -o mz'node'.log -n -c -r 'upatha
otherwise comline = 'm2zmodem.exe -f 1 -h -o mz'node'.log -n -c -r 'othrpath
end
comline
call linein filein
call writeup
return
writeup:
itis = ' :ZModem rz session closed'
do until filname = ' '
if filepatha = itis then leave
filname = linein(filein)
parse var filname "=> " filepatha
filepath = upath2''filepatha
filepathb = 'vbbs'node'.rep'
rencom = 'ren 'filepath filepathb
if isrep = 'REP' then rencom
drop isrep
size = linein(filein)
parse var size "=>" bc
parse var bc "=" cpsa
parse var cpsa cpsb "."
parse var cpsa "=" bytesa
bytes = right(bytesa,7)
cps = right(cpsb,5)
call LINEOUT fileout,'Z'bytes' 19200 bps'cps' cps 0 errors 0 1024' filepath' 0'
if (lines(filein)=0) then leave
end
return