Using XFER
Advanced User’s Guide
3-27
Any of the parameters used in the example could be overwritten on the
command line. For example, with following command:
XFER would use Xmodem for the file transfer instead of Zmodem, while still
using the other option settings specified in the
XFER_ARGS
variable.
There are two precautions for mixing options in the environment variable with
options on the command line. The first is about options that are supported by
Zmodem protocol only. In the following example:
the environment variable is set up to use Zmodem with a 4K window and crash
recovery turned on. In the XFER command line, Xmodem protocol is
specified. Since Xmodem doesn’t support windows or crash recovery, both
those options are ignored. Another, more troublesome scenario is the following:
Here, XFER is set to Zmodem in the environment variable, with an overwrite
setting of
5
(overwrite if source is newer). However, in the XFER command
line, Xmodem protocol is specified. The only overwrite settings that Xmodem
supports are
O4
(always overwrite) and
O7
(never overwrite); all other
O
options resolve to
O7
for Xmodem. If the file
foo
exists, the transfer will
abort. In this case, specify
O4
on the command line or do not use the
X
option.
Multiple-Option Blocks
XFER supports multiple options after a single slash (
/
) or hyphen (
-
) on the
command line and in the
XFER_ARGS
environment variable. Each of the
following examples is a valid command line:
Up to ten slashes or hyphens can be used for options in the environment variable.
Refer to section,
for more information.
C:\> xfer /x foo
C:\> set XFER_ARGS = /z /w4096 /c3
C:\> xfer /x foo
C:\> set XFER_ARGS = /z /o5
C:\> xfer /x foo
If a filename is included in the
XFER_ARGS
environment variable, that file will
always be the first file sent or received. Negate it only by specifying the
N
option on
the command line (refer to
). For this reason, exercise extreme caution
when including filenames in the environment variable.
advuser.book Page 27 Friday, September 27, 2002 4:22 PM