Options tab

On the Options tab you can configure how File Watcher handles events.

Disable new Actions when an Action is already running

When checked, FileWatcher will wait for an existing Action to finish before it triggers a new one. This is very handy for reducing memory and CPU requirements if many files arrive together.

Minimize on Run

When checked, FileWatcher will minimize the new window created by the Action command, if any. Note - the Action command may override the minimize setting itself. This option is used primarily with actions that run a batch file, to prevent the CMD.EXE window showing.

How to Run the Command

Run the command once for each file

Run the command once for each file. %FILE% and %NAME% contain the name of the file being processed.

Run the command with a list of files (after waiting for new files to arrive)

%FILE% and %NAME% contain a list of filenames, each double-quoted. The command gets run once with a big list of files. If your command is a batch file, each file from this list can be referenced as %1, %2, %3 etc.

Run the command with a list file containing the filenames to process

FileWatcher will create a numbered .txt file containing the list of filenames – and %FILE% and %NAME% contain the name of this file, and %PATH% contains its path.

 

FileWatcher will delete this file when the command finishes.

If No File Arrives

If no file arrives in a given time period, File Watcher can run a special script so that an email can be sent or an alert created to inform you.

Minutes

If no file arrives in this many minutes, then trigger the 'no file' action command.

Then run command (exe, bat, vbs, js etc)

Here is where you specify the command to be run when no files arrive in the specified number of minutes.

This MUST be a .EXE, .COM or .BAT, .JS, .VBS filename or any other filename understood by Windows to be an executable filename. See the examples.

Wait for exclusive file access

Normally you want FileWatcher to wait for a file to be completely written to disk before processing it, especially with large files like images or video – the default is on.

There are several reasons you might need to use this option:

  • Some applications do not close their output files immediately, so FileWatcher can never get an exclusive lock
  • If the files being watched are through a read-only share, then FileWatcher again can't get an exclusive lock
  • Some combinations of Operating System and File System do not return this information correctly, and so File Watcher is never able to obtain an exclusive lock on the file, which normally indicates that it is still open.

In any of these cases simply uncheck this setting.