I'm using Internet Transfer Control and I'm trying to have it execute 2 different commands but it keeps giving me an error saying "Still executing last request". I'm trying to delete an old file and then send a new one right after that. Here is my code (with some things removed for privacy):
Inet1.Execute "ftp://USERNAME:[email protected]", "DELETE data.txt"
Inet1.Execute "ftp://USERNAME:[email protected]", "PUT C:\new\data.txt data.txt"
If I break right after the first statement and wait about 1 second, I can step through the second one and it will execute without error. Is there a command that'll just tell it to pause execution for about 2 seconds so the other request has time to complete?
------------------
"Why do they call it "common" sense, if so many people are lacking it?"
"....hey welcome to the real world where things don't go they way you wish they would." - Thanks for that one CajnDave




Reply With Quote