Re: [2005] WaitForChanged
That event is raised when a file is created. By calling WaitForChanged you are telling it to wait right there until another file is created, at which point the event will be raised again and you'll wait again. What exactly are you trying to achieve?
Re: [2005] WaitForChanged
just trying to wait for the file to finish downloading before i import it into a table.
Re: [2005] WaitForChanged
does your program download this file itself? if so there isn't a need for a FSW....
where does the file come from?
Re: [2005] WaitForChanged
Quote:
Originally Posted by texas
just trying to wait for the file to finish downloading before i import it into a table.
Assuming that you do need a FSW, the event is not raised, and thus the handler not executed, until a file is created, so telling it then to wait for a file to be created will wait for another file to be created because the one that raised the event has already been created, otherwise there would have been no event in the first place.