Windows中的哪些应用程序/程序正在访问特定文件的C#代码 [英] C# code for specific file is being accessed by which applications/program in windows
本文介绍了Windows中的哪些应用程序/程序正在访问特定文件的C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好
我正在寻找C#代码,我提供特定的文件/目录名称,我可以获取有关在Windows中访问该文件的应用程序和程序的信息列表..!
我的尝试:
我是尝试使用VS中的Filesystemwatcher
Hello
I am looking for C# code where I give specific file/directory name, I can get list of information about applications and programs accessed that file in Windows..!
What I have tried:
I've tried with Filesystemwatcher available in VS
推荐答案
你不能 - 窗口没有记录默认情况下哪些应用程序访问哪个文件。
你可能会觉得这很有趣:在文件服务器上审核文件访问 - Premier Field Engineering [ ^ ]
You can't - windows does not keep a record of what applications accessed which file by default.
You may find this interesting though: Auditing File Access on File Servers – Premier Field Engineering[^]
这篇关于Windows中的哪些应用程序/程序正在访问特定文件的C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文