Hi all,
I am writing an App that needs to download a file from a website. I am using the Internet Tranfer Control to do this.
This is the code i have at the moment:
Private Sub Form_Load()
With Inet1
.URL = "ftp://80.88.192.200"
.UserName = "eu7hnbg554fr"
.Password = "db911709sn"
.Execute , "CD csv"
.Execute "GET app.csv C:\Temp\app.csv"
.Execute , "CLOSE" ' Close the connection.
End With
End Sub
When I run this I get a debug error saying "Still executing last command". and then when I hit the debug button the ".Execute "GET app.csv C:\Temp\app.csv""
line is highlighted.
It looks like the close line is trying to close the connection while it is still trying to download the file.
How do I tell the app to wait until the file is downloaded.
Any help is appreciated.
Cheers
Symon.
Everything has an answer, it's just knowing the right question to ask. !!!!
I am writing an App that needs to download a file from a website. I am using the Internet Tranfer Control to do this.
This is the code i have at the moment:
Private Sub Form_Load()
With Inet1
.URL = "ftp://80.88.192.200"
.UserName = "eu7hnbg554fr"
.Password = "db911709sn"
.Execute , "CD csv"
.Execute "GET app.csv C:\Temp\app.csv"
.Execute , "CLOSE" ' Close the connection.
End With
End Sub
When I run this I get a debug error saying "Still executing last command". and then when I hit the debug button the ".Execute "GET app.csv C:\Temp\app.csv""
line is highlighted.
It looks like the close line is trying to close the connection while it is still trying to download the file.
How do I tell the app to wait until the file is downloaded.
Any help is appreciated.
Cheers
Symon.
Everything has an answer, it's just knowing the right question to ask. !!!!