home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
zoc-smod.zip
/
smodemdl.rx
< prev
next >
Wrap
Text File
|
1997-03-16
|
1KB
|
33 lines
/* Smodem download script for ZOC */
smodemdir = 'smodem'
irq = '' /* use for non-standard COM settings, ex.: irq = '15') */
addr = ''
/* load crap */
call RxFuncAdd 'Sysfilesearch', 'RexxUtil', 'Sysfilesearch'
/* check com port */
call sysfilesearch 'DeviceOpts#01','options\standard.zoc',comport
compos = pos('COM',comport.1)
if compos > 0 then do
comport = substr(comport.1,compos + 3, 1)
end
else do
say 'Error, ZOC is not set on a COM port.'
exit
end
/* check download path */
call sysfilesearch 'DownloadPath','options\standard.zpa',dlpath
dlpath = substr(dlpath.1,pos('="',dlpath.1) + 2,lastpos('"',dlpath.1) - pos('="',dlpath.1) - 2)
/* remove traling slash from 'smodemdir' */
if lastpos('\',smodemdir) = length(smodemdir) then smodemdir = left(smodemdir,length(smodemdir) - 1)
/* set smodem parameter for non-standard com port settings */
if irq <> '' then irq = insert('/i:',irq)
if addr <> '' then irq = insert('/a:',addr)
/* launch smodem.exe */
zocxferdosshell smodemdir'\spdos t31 'smodemdir'\smodem.exe /p:'comport addr irq' /d 'dlpath