Software runs successfully on Windows 8, 7 x32 and x64, Vista x32 and x64, 2003/XP
File and Folder Watcher continuously monitors one or more folders for new files. When new files arrive, File and Folder Watcher then triggers a custom action, such as running a second program with the new files. This can be used to:
Files are only processed when they have finished being written to disk - so huge video files (100MB - 10GB or more) will not be processed prematurely.
Files that already exist when File Watcher starts can be processed- this is very handy to pickup files that might have arrived while FileWatcher was not active due to a system restart.
Incoming files can be processed individually, or grouped together.
File Watcher can process only those files that match a filespec (e.g. '*.txt;*.html') and ignore all other files that might arrive at the same time. It can also watch multiple folders at the same time (subfolders are handled with a checkbox).
File Watcher can also prevent triggering new actions while an old action is still running.
See the extensive help file for many more examples.
filewatcher.exe "/f=settings.fwx" [/g]
Where options is one or more of:
/f=.. Load a settings file
/g Begin watching immediately
To send an email from File Watcher, you need to use a command-line email program. We STRONGLY recommend you do NOT search for a free download of sendmail.exe - these are 99% guaranteed to contain a virus. Instead, please download from our partner at Absolute Tools.
To run File Watcher on reboot, just copy the FileWatcher shortcut to the Programs\Start Up folder, and customize the start-up parameters.
To run FileWatcher as a service and keep it running even after system restarts or possible server crashes, we recommend FireDaemon.
If you are monitoring a network location, File Watcher can automatically reconnect if the connection drops out - see this log below:
20090422 15:26:50 Lost connection - The specified network name is no longer available 20090422 15:26:50 Attempting automatic restart in 60 seconds 20090422 15:26:55 Attempting restart... 20090422 15:27:16 Folder \\Bert\C does not exist 20090422 15:27:16 Attempting restart... 20090422 15:28:45 Folder \\Bert\C does not exist ... 20090422 15:28:50 Attempting restart... 20090422 15:29:15 Restart successful
Using File Watcher, you can trigger a batch file that runs Windows 'at' command to schedule a job at a defined time if a file arrives. See example 'schedule.bat' when you install
This is one of FileWatcher's key uses here at DataMystic. You can find all these files in this zip file
As we change web files, FileWatcher detects them, bundles them into a file list every 5 minutes and uploads them.
Folder to watch: c:\bp\public_html\crystal - the root of our website
Watch subfolders: Yes
File types: *.* - we can also use TextPipe later to strip out file types we don't want like _vti_cnf files.
Second to wait: 300 ie 5 minutes, so we FTP a group of files every 5 minutes
Actions: New and Updated Files
Command- C:\Program Files\DataMystic\FileWatcher\ftp_upload.bat - this
is included in the FileWatcher distribution
Parameters - %file%
How to Run: Run the command with a list of files (after waiting for new files to arrive)
Disable if already running - Yes
We use TextPipe (Lite, Standard or Pro) to massage the filename into a form suitable for Windows' FTP client (prepare_ftp.fll).
The batch file ftp_upload.bat oversees the whole process:
"C:\Program files\DataMystic\TextPipe\textpipe.exe" /minimized "/f=C:\Program files\DataMystic\filewatcher\prepare_ftp.fll" "%1" /g /q
ftp -i -n "-s:%1"