A
A. Elamiri
Hello,
For some reason the FileSystemWatcher events aren't firing. The code that
sets the event delegates
....
asmwatch.Path = AppDomain.CurrentDomain.BaseDirectory + "services\\";
asmwatch.Created +=new FileSystemEventHandler(asmwatch_Created);
asmwatch.Changed +=new FileSystemEventHandler(asmwatch_Changed);
asmwatch.NotifyFilter = NotifyFilters.FileName;
....
asmwatch is declared globally, both events suppose to show a message box
with information regarding. Problem is, these events never fire when I copy
or remove a file from the directory.
Any thoughts?
Thanks
For some reason the FileSystemWatcher events aren't firing. The code that
sets the event delegates
....
asmwatch.Path = AppDomain.CurrentDomain.BaseDirectory + "services\\";
asmwatch.Created +=new FileSystemEventHandler(asmwatch_Created);
asmwatch.Changed +=new FileSystemEventHandler(asmwatch_Changed);
asmwatch.NotifyFilter = NotifyFilters.FileName;
....
asmwatch is declared globally, both events suppose to show a message box
with information regarding. Problem is, these events never fire when I copy
or remove a file from the directory.
Any thoughts?
Thanks