Using File Transfer Programs
3-26
Falcon
®
DOS Portable Terminals
X
Xmodem Transfer:
The
X
option instructs XFER to transfer all files in that
session using Xmodem protocol. Because this is the default file-transfer
protocol, it does not normally need to be specified.
Z
Zmodem Transfer:
The
Z
option instructs XFER to transfer all files in that
session using Zmodem protocol. The
Z
option should come before all other
options that are valid for Zmodem only (such as the
C
option). This is required
because Xmodem is the default protocol for XFER, and option parsing will fail
if an illegal setting is specified under Xmodem.
In addition, specifying the
Z
option resets the Zmodem window size for that
session, making it necessary for the
Z
option to come before any use of the
W
option.
The XFER_ARGS Environment Variable
XFER recognizes the environment variable
XFER_ARGS
. This variable can be
used to set option settings for most transfer sessions. Even files can be specified
in the
XFER_ARGS
environment variable. Parsing of the XFER command
line starts with the
XFER_ARGS
variable and then continues through any
other specified options or filenames.
A slash or hyphen can be used for each option or the options can be merged
into one block following a single slash or hyphen:‘
For each command line in the example, files will be received (option
R
) using
Zmodem protocol (
Z
) and a baud rate (
B
) of
57600
baud, and existing files
will always be overwritten (
O
).
Always place the
W
option after the
Z
option, or a parsing error will occur. See the
information about the
Z
for more details.
The last protocol option in the command line specifies the protocol that will be used
for the file transfer; that is, Xmodem would be used for the transfer ordered by
XFER
/Z
/X
foo
, and Zmodem would be used for the transfer ordered by
XFER
/X
/Z
foo
.
C:\> set XFER_ARGS = /ZROB57600
C:\> set XFER_ARGS = /Z /R /O /B57600
advuser.book Page 26 Friday, September 27, 2002 4:22 PM