Using XFER
Advanced User’s Guide
3-15
will be received with the names specified on the sender’s command line
(assuming all the files exist). Each filename on the command line can include
its own path.
XFER also recognizes the wildcard characters
?
and
*
. Normal DOS pattern-
matching rules for these characters apply. Be careful about using wildcards
when receiving: XFER expands the wildcards of the specified filenames and
then searches for any matching patterns in the specified directory. If no
matching files are found (in an empty directory, for instance), then no
filenames will be sent to the Zmodem receive procedures. This may or may not
be what was intended. Also, DOS does not store files in alphabetical order, and
so using
*.*
to both send and receive files may result in files being renamed
because they are loaded in a different order. This can occur even if the file lists
on both sides of the transfer are the same.
@
file
Response File
(Zmodem only)
:
The
@file
option allows use of a “response
file” for specifying filenames when conducting Zmodem transfers. This option
allows circumvention of the DOS limitation of 128 characters on the
command line when sending many files in a single transfer session.
When using a response file, fill the file with the filenames to be sent or received.
The filenames may include drives and paths. One filename should appear on
each line of the response file. Up to 256 files can be specified in this way.
The following is a sample response file, named
response.txt
:
Not all the filenames need to be specified in the response file. For example, the
following command would send seven files, including the five in
response.txt
above.
In this case, each filename is read in as it appears on the command line. The file
c:\default\config.sys
would be the first one sent, the
autoexec.bat
file specified in the
response.txt
file would be the
second file sent, and the
c:\data\file4.dat
file specified on the
command line would be the seventh file sent.
Multiple response files can be specified. Regardless of the number of response
files used, the 256-file limitation for a single transfer session is always in effect.
autoexec.bat
c:\programs\theprog.exe
c:\data\file1.dat
c:\data\file2.dat
c:\data\file3.dat
xfer /z c:\default\config.sys /@response.txt c:\data\file4.dat
advuser.book Page 15 Friday, September 27, 2002 4:22 PM