Novell Home

DirMon

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

System Tray indicator for directory monitoring.

Vitals

Product Categories:
  • iFolder
  • Functional Categories:
  • Monitoring
  • Posted:6 Apr 2005
    File Size:399KB
    License:Free
    Download:/coolsolutions/tools/downloads/dirmon.zip
    Publisher:Bryan Keadle

    Disclaimer

    Please read the note from our friends in legal before using this file.


    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

    STOP - Terminate DirMon

    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

    © 2014 Novell