i want to detect changes in filesystem for a special directory and i heard that is 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).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.