Why are FileSystemWatcher Attribute changes detected on Windows 7 but not Windows 8?

后端 未结 5 1079
太阳男子
太阳男子 2020-12-14 06:31

I have some code that uses FileSystemWatcher to monitor file changes outside of my application.

On Windows 7, using .NET 4, the below code would detect when a file

5条回答
  •  一向
    一向 (楼主)
    2020-12-14 06:38

    I had the same problem. This class seems to work on my windows 8 computer:

    https://stackoverflow.com/a/23743268/637142

    Reason why I use that class is because it behaves the same on windows 7 and windows 8.

提交回复
热议问题