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.