Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2004

Tip: Looking for answers? Try searching our database.

FileSystemWatcher.Created Event Question - Please look!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Florida Development - 10 Sep 2004 21:10 GMT
I have the need to monitor a directory for the arrival of files and then to
run some processing on those new files.  This is easy enough conceptually,
the problem I have is that I get an event to handle when the file is first
created yet is not fully written to the disk yet.  Is there some simple way
(that will pass a code review) that I can determine when the file write to
disk has been completed so I can do my processing?  Thank you.
Girish bharadwaj - 13 Sep 2004 14:19 GMT
See help on FileSystemEventHandler in C#.

Signature

Girish Bharadwaj
http://msmvps.com/gbvb

> I have the need to monitor a directory for the arrival of files and then to
> run some processing on those new files.  This is easy enough conceptually,
> the problem I have is that I get an event to handle when the file is first
> created yet is not fully written to the disk yet.  Is there some simple way
> (that will pass a code review) that I can determine when the file write to
> disk has been completed so I can do my processing?  Thank you.
Florida Coder - 13 Sep 2004 14:27 GMT
I have, I guess I am missing something.

> See help on FileSystemEventHandler in C#.
>
[quoted text clipped - 6 lines]
> > (that will pass a code review) that I can determine when the file write to
> > disk has been completed so I can do my processing?  Thank you.
Girish Bharadwaj - 13 Sep 2004 15:58 GMT
Doh!!!!
I did not read the subject.. Sorry. Would Changed be the better event to
process after the Created.. i.e. Once Created comes in, handle the Changed
so that you can see when it first gets changed and use that to handle your
need.

No?\

> I have, I guess I am missing something.
>
[quoted text clipped - 11 lines]
> to
> > > disk has been completed so I can do my processing?  Thank you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.