tags:

views:

52

answers:

1

Anybody have some code to monitor a windows server and notify me when a new file has been copied to it.

Thanks, Paul

+1  A: 

Think you want FileSystemWatcher

msdn http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

example http://articles.techrepublic.com.com/5100-10878_11-6165137.html

EDIT : .Net specific answer

Arj
file system watcher has in WIN32 too;) but it has some Tips you should know about it see http://weblogs.asp.net/ashben/archive/2003/10/14/31773.aspx
ArsenMkrt
FileSystemWatcher works great and is just what I wanted.
Paul