DirWatcher Code
Status: Beta
Brought to you by:
blondandy
See the DirWatcher wiki for up to date information. http://sourceforge.net/apps/mediawiki/dirwatcher/index.php?title=Main_Page In case you have no internet... * Run installer. * To try an example rule without editing it first, create a directory "C:\temp" * Create at least one rule. See "C:\Program Files\DirWatcher\<version>\example_rules". Try "ExampleLogTxt.reg" * Consider the account the service runs under, the permissions will have to be correct to read and write required directories and logs. By defualt, it runs under the local system account. This should be OK for the example given here. * Start the service, you can use the script here "C:\Program Files\DirWatcher\<version>\util_script_and_registry_config" called "start_service.bat" * Copy a small text file into c:\temp, or create one. * Check the log "DirWatcherExample.log". You should see the file has been spotted, and logged. The content of the file should be echoed to the log. * Note that on service startup, error messages may go to the Application event log. After this they will go to the log specified in the rule. * Start making your own rules: regedit, or edit a .reg file. Link to a script or exe in "C:\Program Files\DirWatcher\<version>\trigger_script", or use the full path to the executable. * Once you are happy, set the service to start automatically when the system boots. There is a script to make this change in "util_script...". This is not the default, as rules must be created before the service will start.