none
FileSystemWatcher - works only when I refresh folder RRS feed

  • Question

  • Hello,

    I'm using FileSystemWatcher for the first time and I have one problem. When I change some file then everything works fine, FileSystemWatcher object can see the change and notfy me normaly. But I'm interested in some file that is changing some other app, and there is problem. When app change that file I cannot see the change unless I refresh folder where that file is (in windows explorer). Same thing is with FileSystemWatcher object, there is no event raise for file change until folder is refreshed (manually). I used example code from msdn page:

    http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

    Can anyone help?

    Thanks in advance,

    TG

    Wednesday, October 23, 2013 6:00 PM

Answers