开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜