G
Guest
Hello Everyone and thanks for your help in advance. I have been battling a
problem for nearly a month with the FileSystemWatcher component. Basically,
what I am trying to do it to monitor three separate folders on a Windows 2000
server for activity. In my code, I have set up three separate subroutines:
FaxWatch()
ReportWatch()
ScheduleWatch()
Each of the subroutines creates a new instance of the FileSystemWatcher.
However, I am running into a number of issues. First and most problematic is
that when I create two instances of the component, it seems to work, but a
third one stops all monitoring entirely (for example, calling the
ScheduleWatch() routine). Additionally, some of the files written to the
directory are somewhat large, and I need to figure out a way to wait for the
file to be completely written before taking action. I have tried LastWrite
and LastModified filters, but they don't seem to completely solve the
problem. Finally, there is the documented issue of multiple events being
fired from one event, but I think I can work around this issue if I can get
the rest working properly. The FileSystemWatcher really looks like a useful
tool, but only if it works correctly. Any help on this issue is greatly
appreciated. Thanks.
problem for nearly a month with the FileSystemWatcher component. Basically,
what I am trying to do it to monitor three separate folders on a Windows 2000
server for activity. In my code, I have set up three separate subroutines:
FaxWatch()
ReportWatch()
ScheduleWatch()
Each of the subroutines creates a new instance of the FileSystemWatcher.
However, I am running into a number of issues. First and most problematic is
that when I create two instances of the component, it seems to work, but a
third one stops all monitoring entirely (for example, calling the
ScheduleWatch() routine). Additionally, some of the files written to the
directory are somewhat large, and I need to figure out a way to wait for the
file to be completely written before taking action. I have tried LastWrite
and LastModified filters, but they don't seem to completely solve the
problem. Finally, there is the documented issue of multiple events being
fired from one event, but I think I can work around this issue if I can get
the rest working properly. The FileSystemWatcher really looks like a useful
tool, but only if it works correctly. Any help on this issue is greatly
appreciated. Thanks.