PERFORM        Execute a specified script command

Top  Previous  Next

Syntax:

PERFORM

[ command ]

Arguments:

[ command ]

Variable or string defining a valid FileLink script command to be executed immediately.

Options:

none

 

 

 

This script command takes a variable or string argument and executes it if it was an inline script command. This command is useful to permit script commands to be passed in as a Shortcut Target argument when FileLink is launched or obtained via the PROMPT script command.

 

Consider the following example of a script file that accepts commands that you type when prompted by FileLink. You would type the STOP or FLUSH commands to end script execution.

 

:loop

PROMPT var "Enter Command" "FileLink Prompt Window"

PERFORM var

GOTO loop

 

Consider the following example where a command is passed an argument from the Shortcut Target command line to set the file transfer protocol to Zmodem.

 

"c:\FileLink\Filelink.exe" &protocol "zmodem"&

 

PERFORM &1

 

Related Commands: EXEC, PROMPT

See also Using Shortcut Target Arguments in Script Files