-
FTP Problem ?
i want to put my file to ftp server, but i can't put to 3 file.
code:
Code:
With Inet1
.Cancel
.Protocol = icFTP
.url = "server"
.UserName = "user"
.Password = "pwd"
.Execute , "PUT c:\customer.xml /customer.xml"
.Execute , "PUT c:\product.xml /product.xml"
.Execute , "PUT c:\order.xml /order.xml"
End With
error:
Code:
Still executing last request
-
Re: FTP Problem ?
You need to check the Inet StateChanged event, or call the StillExecuting function to check if it's done.
Something like this
Code:
'exec 1
Do While Inet1.StillExecuting
DoEvents
Sleep 50
Loop
'exec2 ...
(you need to declare the Sleep API)