win XP directory update triggers event
On windows XP, I want to write a program that sends me an email (or triggers some other procedure) whenever the contents of a shared drive are changed. Is there any handy built in API call to do this, or any pre built component that does this? Or is the solution to just poll the directory every N seconds and then alert upon change?
Yes, you can register your window to receive messages from the windows shell on specific events -- see http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_intro.asp , and maybe start with SHChangeNotifyRegister.
.NET Framework Class Library
filesystemwatcher is what i want. Thanks!!!
Fog Creek Home