home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
DEMO510.ZIP
/
SLZMODEM.INS
/
ZMODEM.DOC
next >
Wrap
Text File
|
1999-01-25
|
10KB
|
243 lines
ZMODEM.EXE: External Zmodem file transfer protocol for Searchlight BBS
Version 4.0, May 1994
Introduction
------------
ZMODEM.EXE is an external file transfer protocol driver for Searchlight BBS.
Like the popular DSZ utility, this program can be used as an external
protocol from Searchlight BBS, or it can be called from batch files or other
programs, providing a flexible Zmodem engine for use while running doors in
the Searchlight BBS environment.
Searchlight's ZMODEM driver is optimized for the Searchlight BBS
environment. Unlike DSZ, Searchlight's Zmodem driver:
o Uses any COM port that Searchlight supports, including FOSSIL driven
ports and DigiBoard ports.
o Reads communications parameters directly from the SLBBS CONFIG file,
and therefore requires no complex command line arguments.
o Cooperates with DESQview, Windows or OS/2, consuming less CPU time than
DSZ, especially at lower baud rates.
o Automatically disables (and re-enables) Searchlight's standard door
communications support if active. You can run ZMODEM.EXE freely in any
Searchlight door, regardless of the Communications Support setting.
You can even type ZMODEM commands from a remote DOS prompt.
ZMODEM.EXE implements the full Zmodem protocol including variable block
length, CRC-32 or CRC-16 error checking, and high speed streaming send and
receive capability. Standard Xmodem Checksum, Xmodem/CRC, and Xmodem 1K file
transfers are also supported. An informative display window shows file
transfer progress complete with running bar graphs and CPS count.
Syntax
------
The command line syntax for ZMODEM.EXE is:
ZMODEM [-Sn|-Rn] [-P<Path>] [-C] [Filename...] [@Filename]
"Sn" is one of the following:
-S or -SZ: Zmodem send
-SX: Checksum Xmodem send
-SC: CRC Xmodem send
-SK: 1K (large block) Xmodem send
"Rn" is one of the following:
-R or -RZ: Zmodem receive
-RX: Checksum Xmodem receive
-RC: CRC Xmodem receive
-RK: 1K (large block) Xmodem receive
Send Files
----------
With Zmodem send commands, you can specify a list of files in one of two
ways: either by typing the files explicitly on the command line, or by
typing the @ character followed immediately by a filename that contains a
list of the desired files in plain text format (the same kind of list
Searchlight BBS generates when using an external protocol). You can use both
explicit filenames and indirect files on the same command line if desired.
The maximum number of files that may be downloaded with one command is 60.
Full pathnames and wildcards are supported.
Xmodem commands can send only 1 file at a time. Any additional filenames
specified are ignored.
Receive Files
-------------
With the receive zmodem (-R or -RZ) command, you have the following options:
o If no filenames are specified on the command line, ZMODEM receives any
number of incoming files, which are stored in the current directory.
o If a directory path (ending with a backslash) is specified, ZMODEM
receives any number of files, which are stored in the given directory.
o If a single filename is given on the command line, ZMODEM receives data
to the specified file only, regardless of the incoming filename. Only
one file is received; if the sender attempts to send multiple files,
the remaining files are skipped.
For Xmodem receive commands, you must specify a single filename on the
command line (which may include a path if desired). Only one file can be
received at a time with Xmodem.
If the transfer is aborted during a file receive, the incomplete file is
always deleted.
CONFIG Path
-----------
ZMODEM must open your Searchlight CONFIG.SL2 file in order to automatically
initialize the correct baud rate and serial port. If the CONFIG.SL2 file is
in the current directory, or if an environment variable "SLBBS" is set to
the appropriate directory, no further action is needed. If not, you can
specify the directory where CONFIG.SL2 is located via the -P command line
parameter. -P should be followed by the correct directory, without any
intervening spaces (ie. ZMODEM -S -Pc:\slbbs ... ).
COM Support Swap
----------------
A -C switch is provided to disable the ZMODEM program from toggling
Searchlight's BIOS communications support. This switch is provided ONLY for
cases where ZMODEM.EXE is executed from another program which has already
swapped COM support. DO NOT use this switch unless instructed to do so by
another program's documentation.
Return Codes
------------
ZMODEM.EXE returns 0 for success, or 1 for failure. Failure can occur for
any of the following reasons:
o Searchlight BBS is not loaded, or the CONFIG.SL2 file is not found.
o Insufficient or incorrect command line parameters are specified.
o The file transfer fails or is cancelled. Cancellation can occur by
pressing ESC locally or by signal from the remote end. Failure can
occur for a variety of reasons, including bad filenames specified with
the send command, excessive errors or retries, or disk full.
If a Zmodem send command returns an error level of 1, it indicates that not
all of the files were successfully transferred. Some files may have been
sent successfully. Similarly, failure with a Zmodem receive command does not
imply that no files were received successfully, only that at least one file
was aborted (the incomplete file is always deleted).
Examples
--------
Below are some examples using ZMODEM.EXE to transfer files. These examples
can be used in batch files that run as doors from Searchlight BBS, from door
programs that shell out to an external program, or even directly from the
command line if you are logged in remotely and are using a remote DOS shell
door. Do not run ZMODEM commands locally.
ZMODEM -S MYFILE.ZIP
This command sends the file, MYFILE.ZIP, using Zmodem protocol.
ZMODEM -S THISFILE.ZIP THATFILE.ZIP MYFILE.ZIP
This command sends the three files specified via Zmodem.
ZMODEM -S -Pc:\slbbs MYFILE.ZIP
Sends MYFILE.ZIP. The -P parameter forces ZMODEM to look for the CONFIG.SL2
file in the directory "c:\slbbs".
ZMODEM -S @LIST.TXT
Sends all the files listed in the text file LIST.TXT (Zmodem protocol).
ZMODEM -R
Receives any number of files to the current directory via Zmodem.
ZMODEM -R c:\slbbs\temp\
Receives any number of files to the directory "C:\SLBBS\TEMP".
ZMODEM -R FILE.ZIP
Receives the file FILE.ZIP to the current directory. Note that ONLY one
file, named FILE.ZIP, will be created, regardless of how many files the
sender attempts to send or what the actual filename is.
ZMODEM -SX MYFILE.ZIP
Sends MYFILE.ZIP via Xmodem Checksum protocol.
ZMODEM -SK MYFILE.ZIP
Sends MYFILE.ZIP via 1K Xmodem protocol.
ZMODEM -RC THISFILE.ZIP
Receives the file THISFILE.ZIP via Xmodem/CRC.
Note: the Xmodem protocols are somewhat dynamic in the sense that the other
side can sometimes override the default block check or block size specified
on the command line. Therefore the block size or CRC/Checksum method
displayed during the transfer may not be the same as what was entered on the
command line.
Installation
------------
Below is an example of using ZMODEM.EXE to implement Zmodem as an external
protocol in Searchlight BBS. These examples assume that the ZMODEM.EXE
program is located in the root directory of drive C:, and the Searchlight
home directory is in C:\SLBBS:
1. Protocol Name ................ Zmodem
2. Protocol Send Command ........ c:\zmodem.exe -s -pc:\slbbs @file.lst
3. Protocol Receive Command ..... c:\zmodem.exe -r -pc:\slbbs
If you use a home directory other than C:\SLBBS, or if your ZMODEM.EXE file
resides in another location, change the above examples as appropriate.
'@FILE.LST' may be shortened to any filename if required.
Complete instructions for installation of External Protocols is located in
your Searchlight manual. Please refer to it for background information.
Notes
-----
ZMODEM.EXE depends on the memory resident Searchlight BBS communications
drivers. Therefore, it will run only as a door or external protocol from
Searchlight BBS, and will not function if run while SLBBS is not loaded.
ZMODEM.EXE uses either BIOS or direct screen writes to display its status
screen, depending on how Searchlight is configured. It returns the display
to its previous contents before exiting. ZMODEM.EXE displays no other
headings or messages during its operation, unless there is a failure to
initialize and read the CONFIG.SL2 file or insufficient command line
parameters.
If you run a multinode Searchlight BBS, be sure that ZMODEM.EXE opens the
correct CONFIG.SL2 file for the node from which the door or protocol is
launched. The easiest way to do this is to set the environment variable
SLBBS=<directory>. Make sure this parameter is different for each node in
your system; for example, in a DESQview environment, use SET SLBBS= in each
window by running a batch file when the window is opened, rather than in
your autoexec.bat file.
Searchlight 2.xx
----------------
A replacement version of SLBBS.EXE may be included with this program. The
replacement makes some additional low-level async functions available to the
Zmodem drivers. Install the new SLBBS.EXE program by copying it over your
existing program. Installation of the updated SLBBS.EXE file is REQUIRED if
you are running version 2.25C or earlier, and is optional (but recommended)
if you are running Searchlight 2.25D or 3.0/WL.
DO NOT install this new driver if you are using a Searchlight 3.0 version
with a 1993 or later release date. (You will not receive the driver if you
installed this program from a Searchlight 3.0 distribution disk).
(c) Copyright 1994 Searchlight Software, Inc.
6516 Detroit Ave, Cleveland OH 44102
216-631-9290 Voice/Tech support
216-631-9285 BBS
800-988-5483 Sales