File Watcher
|
Top Previous Next |
(System Scheduler Professional Only)
File Watcher can be used to get System Scheduler to check for the existence (or non-existence) of a particular file, then run another event. So, for File Watcher to work you need a minimum of two Events. The File Watcher event itself, and a second event that will be run when the file exists criteria is met.
Title This is the title for the event as listed in the 'View All Events' page. All Events
Filename Enter the filename, including path, to watch for. You can use the browse button to find a particular file. You can use wildcards characters e.g. *.DAT.
Criteria 'File exists' or 'File does not exist'. 'Folder Exists' or 'Folder does not exist'. 'Folder is empty' or 'Folder is not empty'. System Scheduler will check for a matching criteria as often as it is scheduled to run.
Run Event When the criteria is matched (e.g. the file now exists), you must specify here what you want System Scheduler to do. You need to create a second event that System Scheduler will run in the event of the criteria being matched.
Run Event For Either run the event only once when the criteria is first matched (e.g when the file appears). Or you can run the event every time the criteria is matched. For example, if you have an event scheduled to check for the existence of a particular file every minute:
If 'First Occurrence' is chosen, when System Scheduler checks for the existence of the file and finds that is is there, it will run the chosen 'Run Event'. The next time WS checks for the file, if it is still there it wont run the event as you have selected to only run on the 'First Occurrence'. When WS next checks for the file, if it is no longer there the job is effectively reset, so that next time the file appears it will be treated as a 'First Occurrence' again.
If you choose 'Every Occurrence' the chosen 'Run Event' will run every time WS checks for the existence of the file and finds that it is there.
Disable Event Continuing with the above example. You can configure WS so that when the file is found to exist the first time, the job will be disabled so it will no longer even check for the existence of the file, the job is effectively suspended and remains suspended until you manually go into the job in the GUI and re-enable it.
Saving Either click the Exit button and you will be prompted to save the reminder, or click the Action menu and Save.
Scheduling File Watcher can be scheduled to check for a window run once, every minute, hour, day, month or year. See Scheduling Options for more information.
Back to Introduction
|