FileSystemWatcher NotifyFilters.LastWrite being inadvertantly triggered by Norton AntiVirus NAV



We are writing application program code using Visual Basic .NET (using the Microsoft .NET 1.0 framework).
We have used a FileSystemWatcher control and have set it to watch for new WRITES to an XML text file.
See below

FileSystemWatcher1.Path = sDirectoryToWatc
FileSystemWatcher1.Filter = sFilenameToWatc
FileSystemWatcher1.IncludeSubdirectories = Fals
FileSystemWatcher1.NotifyFilter = NotifyFilters.LastWrit

Whenever NAV runs, it inadvertantly triggers the LastWrite event as NAV passes over the file being watched.
When I look at the properties of the file, it does NOT show that the modify date (or any dates) have really changed.

Either this is a bug in NAV, or more likely the MS .NET FileSystemWatcher control.
Please advise. Ric

Also refer to


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question