I am writing a tool that monitors a network directory and is running off of a Windows Server 2008 machine, the OnChanged event for the FileSystemWatcher is being fired corre
After many many attempts using the FileSystemWatcher I have given up on it. It won't fire events correctly, at the wrong time, the incorrect type. Honestly I think it's one of the worst classes in the .net framework. I have always ended up writing my own class that takes a System.Timer and after x milliseconds elapsed it will check directories, files manually. Yes it takes more work and yes it can be a slight PITA but once you've written it you can use it wherever you want. I wish the FileSystemWatcher worked as advertised but I've never found it to do so.