Beyond FTP Feature Tour
Beyond FTP Script
Editor - Wildcard_File Command
Back
to Feature Tour


Wildcard files are text files. They are structured like .ini
files, with sections and parameters. The section name is enclosed in square
brackets “[ ]” and parameters simply follow the section. An equal sign
separates a parameter from its value.
[Date values]
Yesterday=05/10/2000
Today=05/11/2000
Tomorrow=05/12/2000
The file may contain any number of sections. Wildcard values are retrieved
using the Substitution Wildcard.
Example:
:Wildcard_File:
c:\bftp\script.ini

The %[ wildcard reads a value from the wildcard file and places it into the
script. Like all wildcard actions, this takes place at run-time when the
script line is processed.
Wildcard files are structured like .ini files, with sections and parameters.
The <section name> is enclosed in square brackets “[]” and <parameter>s
simply follow the section. Variable names may be used for both the <section
name> and <parameter>. This allows you to dynamically control the values
being retrieved. The entire construct is replaced with the parameter value,
if any. For example, if the file contained the following:
[Date values]
Yesterday=05/10/2000
and the wildcard was specified as follows:
:From: c:\test\File-%[Date
values,Yesterday].txt
:To: c:\temp\Thename.txt
the resulting transfer would copy the file
c:\test\file-05/10/2000.txt.
Back
to Feature Tour

|