Using Shortcut Target Arguments in Script Files

Top  Previous  Next

 

FileLink permits arguments defined on a Shortcut Target line to be passed in at load time to be used as script file variables. Up to nine arguments are supported. There are nine internally defined variables, %1 through %9, dedicated for this purpose

 

On the Target line an argument is delimited by either & or %. The following are example arguments:

 

&argument&

%different argument%

 

The first argument, reading left to right, is assigned to variable %1, the second argument is assigned to %2, and so on. For example, consider the following Shortcut Target command line.

 

"filelink.exe"  &"1-512-555-1212"&  &SENDFILE "newdata"&

 

With such a Target line, the following script file:

 

DIAL %1

PERFORM %2

DISCONNECT

EXIT

 

would be executed as if it was originally written as:

 

DIAL "1-512-555-1212"

SENDFILE "newdata"

DISCONNECT

EXIT