开发者

How to monitor Fileaccess in C#

开发者 https://www.devze.com 2023-04-13 06:22 出处:网络
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#

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号