Internet Transfer control
I am using the microsoft internet transfer control to ftp a file from local m/c to remote m/c.
Connection is established properly
Heres the sample code
Inet1.Execute , " cd /xyz/yz/z"
Inet1.Execute ,"put c:\tmp\name.txt name.txt"
At run time, application hangs while executing the put statement. I have tried using the stillexecuting property with no luck.
If I get into debug mode the file is transfered fine.
Any light on this problem is greatly appreciated.
Thank you in advance.
Re: Internet Transfer control
I have not used the Inet Control... but I have used the winsock control. With it you have to put code between each statement to tell it to Wait... I think the problem you are having is that it is sending the command to "put" before previous command has been executed on the server... reply if you need more help.
Re: Internet Transfer control
Try this way:
Inet1.Execute , " cd /xyz/yz/z"
Inet1.Execute ,"put c:\tmp\name.txt name.txt"
Do
DoEvents
Loop While Inet1.StillExecuting
-Dj4