File Watcher Windows Service

File Watcher Windows Service is a simple windows service file watcher application that can be configured using XML configuration files . The configuration is entered directly to the XML configuration files . You can use XML configuration files from any other File Watcher Utilities application.

Service start parameters

The application reads start parameters at startup. The start parameters can be used to specify how the main application behaves. To configure how the file system is monitored see XML configuration.

Start parameters usage

FileWatcherWindowsService.exe [-a] [-b:x]

Command line argument Description
(default value if '-a' is not specified) Synchronous execution of all started processes.
-a Asynchronous execution of all started processes.
-b:x Total process batch size is x (1-99). '-a' Must be specified. Limits amount of simultaneous processes run by this application.

Logging

See Log file for more details.

Installation

By following the manual installation procedure you may install multiple copies of the File Watcher Windows Service service.

Preconfigured installation

  1. Unzip the fwws_x.x.x.x_bin.zip to 'C:\FileWatcherWindowsService'
  2. Run 'C:\FileWatcherWindowsService\InstallFileWatcherWindowsService.bat'. This batch file uses 'sc.exe' and it uninstalls any previous versions of the service and then installs the new service. The service is registered as 'File Watcher Windows Service'.
  3. After the installation you need to create XML configuration files and copy them to the 'C:\FileWatcherWindowsService' directory. File Watcher Simple is recomended for building the XML configuration files.
  4. The service can be started.

Manual installation

  1. Unzip the fwws_x.x.x.x_bin.zip to a directory.
  2. Register the service by using the 'sc.exe'.
  3. Edit 'FileWatcherWindowsService.exe.config' file. Change the value of the preconfigured 'xmlConfigurationFilePath', 'xmlSchemaConfigurationFilePath' and 'logFilePath' keys to point to the installation directory.
  4. After the installation you need to create XML configuration files and copy them to the installation directory. File Watcher Simple is recomended for building the XML configuration files .
  5. The service can be started.

Known issues

Shutdown may cause some long running processes run by the File Watcher Windows Service to be terminated. This may cause loss of data if the process is terminated abnormally due to the shutdown. Stopping the File Watcher Windows Service before shutdown is advisable. This prevents the abnormal termination of the File Watcher Utilities Service and abnormal termination of any processes run by it.


Copyright © 2006-2013 Jussi Hiltunen