Beyond FTP Feature Tour
Beyond FTP Script
Editor - From/To Command
Back
to Feature Tour


From/To is the basic file transfer command. The From and To
keywords must occur together, and must completely define the source and
destination servers, paths, and files involved in the transfer. From can
also be modified with an optional /S parameter, indicating the inclusion of
sub-directories in the transfer.
The <server> name is optional for both the source and destination files. A
<server> must occur within braces {} whenever it is specified. Local
transfers will not include either <server> name. Third party remote
transfers will include both <server> names. In this case, one <server> must
be preceded by the @ character to indicate that it will be performing the
actual transfer. A Server_List name must be prefixed with an exclamation
point. This tells the script compiler to expand the list. Only one of the
two <server> entries may be a server list. Server lists are expanded at
compile time. Wild cards are expanded at execution time.
A variant of the To portion, ToOne, may be specified. This allows you to
disable wildcard editing. The From specification can contain wildcards (*)
while the ToOne specification contains a single file name. This allows you
to take unknown names and give them a known value. When sub-directories are
searched, it provides a means of taking files from an unknown directory
structure and copying them to a known directory structure. Finally, when the
%u wildcard is used on the ToOne file name, Beyond FTP will generate a
unique suffix for any file names that collide.
Warning: If more than one file matches the From mask,
each match is copied to the ToOne file. This can result in the loss of data
unless the %u suffix is included in the target specification!
Example:
:From: c:\Sales Reports\*.doc
:To: {!SalesStaff}c:\Daily Reports\*.doc
Back
to Feature Tour

|