home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
MXP001.ZIP
/
DLOAD.CMD
next >
Wrap
OS/2 REXX Batch file
|
1990-11-28
|
2KB
|
74 lines
@echo off
rem
rem This batch file example is based on the external file transfer
rem program M2Zmodem by Mikael Wahlgren.
rem
rem
rem
rem
rem Parameters passed on to this Batch file by MX:
rem
rem %1 Hotkey command used to select the desired file
rem transfer protocol.
rem
rem %2 Full path and file name of the compressed mail bundle
rem to be downloaded.
rem
rem %3 Shared comm port 'handle' used by Maximus and MX.
rem
rem %4 baud rate. This is normally NOT needed for most external
rem file transfer programs. Most file transfer program would
rem take the current port speed.
rem
rem
rem NOTE!!!!!!!!!!
rem
rem * Take out ALL the M2Zmodem '-h' options from below if you are NOT
rem running your modem with CTS/RTS flow control. The '-h' option
rem is usually only required if you run your modem at a locked baud.
rem
rem * Don't forget to set your DPATH and PATH correctly as stated in
rem the documentation of M2Zmodem.
rem
if "%1" == "X" goto DL_XMODEM
if "%1" == "Y" goto DL_YMODEM
if "%1" == "G" goto DL_YMODG
if "%1" == "1" goto DL_XMOD1K
if "%1" == "Z" goto DL_ZMODEM
goto END
:DL_XMODEM
m2zmodem.exe -prot XMODEM -u %3 -h -n -prty 0 -s %2
goto END
:DL_YMODEM
m2zmodem.exe -prot YMODEM -u %3 -h -n -prty 0 -s %2
goto END
:DL_YMODG
m2zmodem.exe -prot YMODEMG -u %3 -h -n -prty 0 -s %2
goto END
:DL_XMOD1K
m2zmodem.exe -prot XMODEM1k -u %3 -h -n -prty 0 -s %2
goto END
:DL_ZMODEM
m2zmodem.exe -prot ZMODEM -u %3 -h -n -prty 0 -s %2
goto END
:END