|
-
May 3rd, 2001, 08:05 AM
#1
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.
-
May 3rd, 2001, 11:14 AM
#2
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.
-
May 3rd, 2001, 11:32 PM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|