FileSystemWatcher:如何知道哪个进程进行了更改? [英] FileSystemWatcher: how to know which process made the change?
本文介绍了FileSystemWatcher:如何知道哪个进程进行了更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以获得引起文件系统更改的进程的名称?
is it possible to get the name of the process that caused the change in the filesystem?
我想以编程方式进行此操作(即,我无法使用任何外部第三方工具(例如handle)
i want to do this programmatically [ie, i can't use any external 3rd party tools like handle]
有什么想法吗?
推荐答案
操作系统未提供此类信息.您将需要文件系统过滤器驱动程序,以对文件系统上所做的更改进行细粒度控制.
The OS doesn't provide such information. You would need a file system filter driver for fine-grain control over changes made on the file system.
这篇关于FileSystemWatcher:如何知道哪个进程进行了更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文