开发者

Work with files exception

开发者 https://www.devze.com 2022-12-26 06:38 出处:网络
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 pro

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

精彩评论

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

关注公众号