-
Hi,
I'm using the Inet control to download a file from my FTP server....
Once the file is downloaded I want to open it and read in the contents...
The problem is once the file is download the program tries to open it before it has been written to...so there is an access violation.
Is there a way I can make the program wait for the server to finish downloaded the file first?
Thanks
Zotud
-
where did you place the open command?
-
Just place a Do Until loop with syntax something like:
Code:
Do Until Inet1.StillExecuting
'Download
Loop
'Then place the open file syntax
or you could also place DoEvents between the two operations.
Gl,
D!m