How to intercept the access to a file in a .NET Program

后端 未结 5 1103
梦如初夏
梦如初夏 2021-02-20 05:37

I need to intercept when the system tries to access to a file, and do something before it happens.

5条回答
  •  逝去的感伤
    2021-02-20 06:04

    There's a very similar thread here: How could I prevent a folder from being created using a windows service?. It may provide some more insight, but @LBushkin has already provided the same conclusion.

提交回复
热议问题