Skip to content

Configuration File

TechieGuy12 edited this page Jan 12, 2022 · 7 revisions

The configuration file is an XML file that contains the settings used by File Watcher to monitor the folders on the system. This file is needed before File Watcher is run.

A sample template is included in the release zip file that includes all the elements of the XML file that can be used. Not all elements need to be included in the configuration file, so the sub-sections below will go over each of the elements, which will provide enough information on what you should include in your configuration file.

Layout

The basic layout of the configuration file includes the following:

<watches>
    <watch>
        <path></path>
        <notifications></notifications>
        <actions></actions>
        <commands></commands>
    </watch>
</watches>

The above shows the necessary elements in the configuration file, which contains the root element <watches>, followed by any number of <watch> elements - one for each path you would like to watch.

Only one of the <notifications>, <actions>, or <commands> elements is needed, but at least one must be included. If none of those elements exist, then the File Watcher won't perform any function when a change is detected.

Clone this wiki locally