Results 1 to 6 of 6

Thread: Inet and AOL

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    11
    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.
    Still Learning

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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

  4. #4
    Guest
    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!

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    11
    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]
    Still Learning

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    11
    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
    Still Learning

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width