Handling multiple Change Events in FileSystemWatcher

后端 未结 7 1633
别跟我提以往
别跟我提以往 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:16

    I'm trying to detect when an excel file changes but am running into a problem that the changed event is not firing and as Im only concern with a single file setting the filter doesnt work. When I remove the filter and look at an event that is triggered the event argument name property looks to be a random generated name and not the specific filename which I know has changed.

    So I'm not able to get a simple notification when a specific excel file changes.

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