Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2005, 09:37 PM
Authorized User
 
Join Date: Jul 2003
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default HELP - FileSystemWatcher Problems

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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the FileSystemWatcher Control Eyob_the_pro C# 0 January 4th, 2007 03:08 AM
FileSystemWatcher brawny4 Visual Basic 2005 Basics 3 December 28th, 2006 12:47 PM
FileSystemWatcher? [C#] [email protected] General .NET 2 May 13th, 2005 03:50 AM
FileSystemWatcher Problem [email protected] VB.NET 0 December 18th, 2004 11:29 AM
FileSystemWatcher Class bwood415 General .NET 5 December 6th, 2004 04:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.