-
Is anyone familiar with transferring programs
to and from AOL using the inet control. I incounter
intermittant problems. Sometimes the control works and
sometimes it doesn't. The code never changes. The Inet
response is usually 550:file not simple txt or directory doesn't exist. Any help or sample code would be greatly appreciated. Thanks.
-
The inet control is a cheap control that was writen by microsoft. I suggest you eigher use winsock to tranfer the files(could be hard) or use mabry ftp controls (mabry.com).
Hope that helps,
D!m
-
Post the code that you are using and we will tell you where the problem is:
Code:
Inet1.AccessType = icUseDefault
Inet1.URL = "xxx.xxx.xxx.xxx"
Inet1.UserName = "me"
Inet1.Password = "***"
Inet1.RequestTimeout = 40
Inet1.Execute , "PUT C:\test.txt test.txt"
This is what your code should look like.
Hope this helps,
D!m
-
Dim is correct, MSInet wouldn't be your best bet for transferring files because sometimes it transfer the whole file, some of the time, it doesn't, and it it very buggy as well. Winsock is the best thing for transferring files and here is an example on how to do that: Complete Winsock File Transfer Toolkit!
-
Dim,
Here's the code.
With Inet1
.URL = "ftp://members.aol.com"
.UserName = "anonymous"
.Password = "[email protected]"
.AccessType = icDirect
.Protocol = icFTP
.RequestTimeout = 30
'goto correct dir
labStatus.Caption = "Opening FCP Directory"
.Execute , "cd anydirectory"
Do While Inet1.StillExecuting
DoEvents
Loop
.Execute , "close"
End With
This code seems to work every once and awhile. I did take
your advice and I am currently playing with the
Mabry FTP sample. Thanks for responding. All help is greatly appreciated.
[Edited by johnnewad on 08-08-2000 at 01:47 AM]
-
After playing with the Mabry control
I discovered if I add a "/" before the
name of the directory (ie .execute , "cd /anydirectory") the Inet1 control seems to work consistantly.
I'm not sure if it solved my problem, since
sometimes it takes a few days before the problem re-occurs.
John