Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have set up a FileSystemWatcher component in my program to watch a certain folder for new files. It is working fine except that it is firing 2 or 3 times whenever a new file is created in the watched folder, which is causing problems elsewhere in my program. Is there a way in which I can set the FileSystemWatcher component to fire only once for each new file that gets created? I have tried changing the .NotifyFilter property to the various options, but I still get the multiple events firing. Thanks for any help...
  • Leaders
Posted
Are the files being saved over? Newly created? Any copying? And the best way to determine which events are being fired is to handle them. You can throw a MessageBox or something in the handler to tell you that the event was fired.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...