Disclaimer

Details

We have a cOOl solution using iFolder to synchronize files between our wireless police vehicles and our municipal network.

As a matter of procedure, our beat officers save report files to a particular folder where the Watch Commander can review them. I wanted to provide a visual indicator showing the number of files that exist in this report directory so that the Watch Commander didn't have to manually browse to the directory to check for files. With DirMon, it will poll the named directory every 10 seconds (or whatever poll cycle I define), and change the system tray icon to show the number of files that exist in that directory.

When the monitored directory is empty, this icon exists in the system tray:

As files get added to the directory, the system try icon will show the number of files in the directory:

DirMon will only indicate up to 50 files:

anything over that will simply show greater than 50:

Of course, DirMon could be used for any need to monitor the number of files in a directory. For example, say you have some process(es) that generates logs to some central location. Furthermore, say that you have .LOG files and .ERR files in this directory, .ERR files are the error logs that you want to "watch" for. Simply add DirMon to your startup and point it to your logging directory, like this:

DirMon X:\LOGS\*.ERR 60

Every 60 seconds, DirMon will check for the number of .ERR files in your X:\LOGS directory, and update the system tray icon to indicate the number of those file.

Could be handy!

SYNTAX: DirMon (DIR) (POLL) (STOP)

DIR - Directory to monitor: you may specify a file specification EG: X:\iFolder\Queue or X:\iFolder\Queue\*.CSV

POLL - (Optional) Specify the number of seconds to poll the directory default=10