By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,490 Members | 3,266 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,490 IT Pros & Developers. It's quick & easy.

FileSystemWatcher.Created Event Question - Please look!

P: n/a
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.
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
See help on FileSystemEventHandler in C#.
--
Girish Bharadwaj
http://msmvps.com/gbvb
"Florida Development" <No****@FloridaDevelopment.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
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.

Nov 16 '05 #2

P: n/a
I have, I guess I am missing something.

"Girish bharadwaj" <gi*****@mvps.org> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
See help on FileSystemEventHandler in C#.
--
Girish Bharadwaj
http://msmvps.com/gbvb
"Florida Development" <No****@FloridaDevelopment.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
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.


Nov 16 '05 #3

P: n/a
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?\
"Florida Coder" <No****@FloridaDevelopment.com> wrote in message
news:ul**************@TK2MSFTNGP15.phx.gbl...
I have, I guess I am missing something.

"Girish bharadwaj" <gi*****@mvps.org> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
See help on FileSystemEventHandler in C#.
--
Girish Bharadwaj
http://msmvps.com/gbvb
"Florida Development" <No****@FloridaDevelopment.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
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.



Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.