THE INFORMATION IN THIS ARTICLE APPLIES TO:
- EFT Server (All Versions)
- Secure FTP Server (All Versions)
You can configure EFT Server/Secure fTP Server to run executables, batch files, and scripts automatically when specific events occur, called these commands. When the Event Rule is triggered, the Server executes the specified custom command and attributes.
Note: The parameters and paths below are provided as examples; adjust them to suit your configuration.
To execute a Command from the Event Rule system
- Create a custom Command. (Refer to the help documentation for the the procedure.)
- Create a new Event Rule. (Refer to the help documentation for the the procedure.)
- If you need to apply any conditional behavior, click it in the Conditions list.
- In the Actions list, click Execute command in folder. The Action is added to the Event in the Rule pane.
- In the Rule pane, click select. The Custom Command dialog box appears.
- In the Select command list, click the down arrow to select the command.
- (Optional) In the Specify command parameters box, include any parameters for the command. For example, type the script name if running a script.
You can also add items in the Available Tags list as parameters. Surround each parameter with percent signs (%parameter%). For example, suppose you want to run a script on a file that was uploaded and triggered the Event Rule. You would type the script name and the tag %FS.FILE.NAME%, as shown below:
dosomethingwithfile.vbs -file %FS.FILE_NAME%
- In Specify command working folder type the path or click the folder icon to specify the folder in which the script or executable resides (e.g., C:\EFTscripts).
- Click OK to save the Command.
- Click Apply to save the Event Rule.
Optionally provide private feedback to help us improve this article...
Thank you for your feedback!