Monitor FTP sites with WatchFTP Monitor FTP sites with WatchFTP


  screenshot of this window

Run a Batch Script

This feature is switched on using the Additional Actions page.

Use this page to configure the Task to run a batch script every time it downloads a file. The batch script can use Environment Variables.

Batch Script: The file containing the script.

As an example, suppose you want to run the program dbimport.exe for all newly downloaded files. Your batch script would look like this:

%WF_FILE% is an Environment Variable that is replaced by the complete path of the downloaded file. For example: C:\Syncdir\NewFile.txt.

Please see Troubleshooting for some tips if you need to "debug" your script.