Link to home
Start Free TrialLog in
Avatar of lottk
lottk

asked on

Internet transfer control

I am trying to copy a file using the Internet transfer control and I keeping getting an error that the Anonymous user does not exist.  I am not trying to login as Anonymous.  Here is the code I am using and it looks ok to me.  I have the SP3.
Dim strSite As String
    Dim strFile As String
    Dim objFTP As Object
   
    Set objFTP = Me!axFTP.Object
   
   
    strSite = "FTP://ftp.207.154.236.216"
    strFile = "C:/usr/local/etc/httpd/sites/usaauctions/oshome/data/logs/cust.log"
   
    objFTP.AccessType = icUseDefault
    objFTP.Protocol = icFTP
    objFTP.URL = strSite
    objFTP.UserName = "Admin"
    objFTP.Password = "TEST"
   
    Text1.Text = objFTP.OpenURL
   
    objFTP.Execute strSite, "Get " & strFile & " C:\FTP\" & strFile

any help would be greatly appreciated.

Avatar of electrick
electrick

If the FTP site you supplied is correct, I can't open it either
ASKER CERTIFIED SOLUTION
Avatar of peterwest
peterwest

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For an FTP address, you need not type 'ftp://'.  Just enter 207.154.236.216 (or 'ftp.207.154.236.216'which I doubt is correct).  That should clear up the address problem.  Good luck.
Bought This Question.