Click to See Complete Forum and Search --> : Internet Transfer control


mraghuv
May 3rd, 2001, 08:05 AM
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.

slcotten
May 3rd, 2001, 11:14 AM
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.

dj4
May 3rd, 2001, 11:32 PM
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