FileSystemWatcher used to watch for folder/file open

后端 未结 6 1401
太阳男子
太阳男子 2020-11-30 12:06

I have browsed around but cannot find any information on what I am seeking, if there is another post that already goes over this then I apologize.

I am seeking help

6条回答
  •  时光说笑
    2020-11-30 12:20

    You should set

    watcher.Path = @"C:\junk";
    

    and delete watcher.Filter line if event should fire for all files

    Using Filter property you can set wildcards for matching files, for example *.txt

提交回复
热议问题