home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
rbbs
/
sx227r1.lzh
/
HST-SEND.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-07-30
|
2KB
|
78 lines
ECHO OFF
:--------------------------------------------------------------
: SENDOPX batch file for Silver Xpress HST set up
:
: (c) copyright 1989-90 Santronics Software
:--------------------------------------------------------------
: Input Parameters
:--------------------------------------------------------------
:
: 1 hotkey character from Xpress protocol menu.
: 2 baud rate
: 3 port number
: 4 full path file name
:
:--------------------------------------------------------------
: Modify and Add extra file transfer protocols here.
:
: 1) first add a IF statement with a GOTO
: 2) then add the goto LABEL with the appropiate logic.
:--------------------------------------------------------------
:
IF "%1" == "K" goto PCKERMIT
IF "%1" == "X" goto XMODEM
IF "%1" == "Y" goto YMODEM
IF "%1" == "Z" goto ZMODEM
IF "%1" == "S" goto SEALINK
IF "%1" == "W" goto WXMODEM
GOTO ERROR
:
:WXMODEM
:
WXMODEM -s -b %2 COM%3 -p y -f %4
EXIT ERRORLEVEL
GOTO END
:
:PCKERMIT
:
PCKERMIT -l COM%3 -b %2 -m 31 -p n -s %4 -c
EXIT ERRORLEVEL
GOTO END
:
:XMODEM
:
DSZ handshake both port %3 speed %2 sx -c %4
EXIT ERRORLEVEL
GOTO END
:
:YMODEM
:
DSZ handshake both port %3 speed %2 sx -k %4
EXIT ERRORLEVEL
GOTO END
:
:ZMODEM
:
DSZ handshake both port %3 speed %2 sz %4
EXIT ERRORLEVEL
GOTO END
:
:SEALINK
:
CLINK /P%3 /B%2 T %4
EXIT ERRORLEVEL
GOTO END
:
:ERROR
:
ECHO File transfer %1 not defined in batch file.
:
:---------------------------------------------------------------
:END