|
-
Aug 7th, 2000, 10:02 PM
#1
Thread Starter
New Member
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.
-
Aug 7th, 2000, 10:24 PM
#2
Fanatic Member
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
-
Aug 7th, 2000, 10:27 PM
#3
Fanatic Member
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
-
Aug 8th, 2000, 12:28 AM
#4
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!
-
Aug 8th, 2000, 12:34 AM
#5
Thread Starter
New Member
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]
-
Aug 8th, 2000, 12:44 AM
#6
Thread Starter
New Member
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
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
|