Handling multiple Change Events in FileSystemWatcher

后端 未结 7 1796
别跟我提以往
别跟我提以往 2021-02-10 09:33

I have the following sub:

  Private Sub Watcher_Changed(ByVal sender As System.Object, ByVal e As FileSystemEventArgs)
        If Path.GetExtension(e.Name) = \".         


        
7条回答
  •  我寻月下人不归
    2021-02-10 10:01

    One thing to note is that accessing the file can change one of the file properties, like "accessed time" or something. That can then fire off another event if you don't have the notification filters setup right.

提交回复
热议问题