Function:
Executes a script by passing each command line parameter sequentially to an Perform language command.
Syntax:
AllParams <Command> <String/Variable> <String/Variable>
Example:
AllParams Send "%%ALLPAR%%" "/mydata/%%NAMEPAR%"
Notes:
The example above tells the FTP client to cycle the Send command through all of the command line parameters. It will exchange the %%ALLPAR%% variable with each parameter passed to the program. The %%NAMEPAR%% will be replaced with the filename part of the command line parameter. For example, if the command line looks like this:
RunScript C:\FTPCtrl\Scripts\test.FTP C:\Data\Data1.dat C:\Data\Data2.dat
then the translator will execute the Send command twice like this:
Send "C:\Data\Data1.dat" "/mydata/Data1.dat"
Send "C:\Data\Data2.dat" "/mydata/Data2.dat"
See example script 15.