How to monitor Fileaccess in C#
i want to detect changes in filesystem for a special directory and i heard that i开发者_如何学编程s possible to monitor the file-access. Can anyone tell me how to monitor a directory for example in C#.NET?
THX Rene
You need the FileSystemWatcher
.
Full documentation on MSDN is here: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
There is a FileSystemWatcher
class.
As far as I know this does not work on Novell Network shares (at least the last time I tried it, some years ago).
精彩评论