开发者

Work with files exception

I want to create program which will tell me if a file is used or not by another processes (for example i open music or video file in multimedia play开发者_StackOverflow社区er, and then i launch my program with this file name programm return "this file is being used", and when no processes uses this file program would say "this file not being used").

What classes have the .NET for solve this problem?


There is also ETW tracing for File I/O which should help you figure out File I/O events. And here is how you can use ETW within managed code

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜