Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have applications that integrates to other applications through files exchanging. We needed to be able to be notified on the following situations:

  • Files are accumulating on a certain folder, reaching a defined number of accumulated files;

  • A file is present on a folder without being taken by the app for more than a specified number of minutes;

  • A folder has been empty with no file movement for more than a specified number of minutes;

Is there any tool for Windows that would allow me to set e-mail alerts upon those events? Preferrably a free one :)

I believe this might be a stupid question, but I swear I tried to google it for two days and I came up only to the wrong tools, or tools too difficult to learn.

Thanks a lot in advance.


Jonathas Carrijo

share|improve this question
up vote 2 down vote accepted

On Linux you can use inotify and dnotify to monitor the folders and have a script that is doing what you need. Take a look on incrond too.

On Windows you could write a powershell script and use FileSystemWatcher Class.

See also:

share|improve this answer
Thanks, Mr Vutcovici. Actually, I fogot to say that our servers run on Windows. – Jonathas Carrijo Oct 31 '12 at 17:48
The post you mentioned referenced a Java API which seems a promising choice for our needs. – Jonathas Carrijo Nov 1 '12 at 12:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.