Is it possible to identify what process is changin

2019-02-28 05:12发布

Is it possible to use the FileSystemWatcher to find the PID or process name that is changing a file?

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-02-28 05:34

Negative. The only information you will have is the data contained in the FileSystemEventArgs class, documented here.

This means you only get the type of change that was made, as well as the path to the file that was changed.

查看更多
\"骚年 ilove
3楼-- · 2019-02-28 05:39

Nope, you need a file system filter driver to track changes with such details.

查看更多
登录 后发表回答