PC Review


Reply
Thread Tools Rate Thread

Acting on file from FileSystemWatcher

 
 
Jude Wong
Guest
Posts: n/a
 
      30th Jul 2003
Hi,

I would like to use FileSystemWatcher to monitor a folder
and act on any file that goes into that folder. I
managed to get the sample code from the .NET Framework
SDK on FileSystemWatcher working.

The event that I would like to handle and act on the file
is the Created event. However I noticed that when a
large file is copied into that folder, a Created event is
fired, followed by a series of Changed events.

I don't want to act on the file until the file has
finished copying. What is the correct way of doing this?

Many thanks.


Best regards,

Jude.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FileSystemWatcher and Word file piola vago Microsoft Dot NET 2 24th Jan 2007 09:53 PM
FileSystemWatcher and file locking? intrepid_dw@hotmail.com Microsoft C# .NET 4 4th Aug 2006 03:29 PM
filesystemwatcher and read from file =?Utf-8?B?ZW1hbmw=?= Microsoft Dot NET 2 26th Sep 2005 08:25 AM
FileSystemWatcher file name error Phil396 Microsoft C# .NET 0 2nd Aug 2004 04:54 PM
FileSystemWatcher: file used by another process Oleg Ogurok Microsoft Dot NET Framework 1 23rd Feb 2004 11:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:58 PM.