-
Notifications
You must be signed in to change notification settings - Fork 28
Home
FileWatcher is a small application designed to monitor folders and files on the local system. When specific changes are detected a notification can be sent to and endpoint via an API request, or an action (copy, move, delete) can be performed.
Installing FileWatcher is as simple as extracting the release zip file to the system. No other installation steps are needed as the application was designed to be portable.
FileWatcher can be installed as a Windows service to allow for monitoring of files and folders when a user is not logged into the machine.
The easiest way to install FileWatcher as a service is to use NSSM. Once NSSM is downloaded, you can run the following steps to install FileWatcher as a service:
- Open a Windows command prompt.
- Navigate to the NSSM folder.
- Run the following command:
nssm install FileWatcher
. - When the NSSM window appears, use the following settings:
Name | Value |
---|---|
Path | Path to the FileWatcher executable (fw.exe). |
Startup Directory | Folder containing the FileWatcher executable. |
Arguments | see below. |
The above are all that is needed. You can complete the details and Log on tabs as you see fit (I highly recommend you ensure the service Startup Type is set to 'Automatic' so the service automatically starts on Windows startup.)
There are a few command line arguments that can be used with fw.exe. They are described below:
Argument | Description |
---|---|
-f, --folder <folder> | The folder containing the configuration XML file. |
-cf, --configFile <config file> | The name of the configuration XML file. |
--version | Version information. |
-?, -h, --help | Show the help and usage information. |
If no arguments are specified, FileWatcher will look for config.xml in the current folder for the settings to use.