Is it possible to identify what process is changing a file with FileSystemWatcher?

前端 未结 2 2186
栀梦
栀梦 2020-12-12 01:40

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

相关标签:
2条回答
  • 2020-12-12 01:57

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

    0 讨论(0)
  • 2020-12-12 02:15

    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.

    0 讨论(0)
提交回复
热议问题