Solved

Internet transfer control

Posted on 1998-06-18
4
177 Views
Last Modified: 2010-05-03
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.

0
Comment
Question by:lottk
4 Comments
 

Expert Comment

by:electrick
ID: 1463754
If the FTP site you supplied is correct, I can't open it either
0
 
LVL 2

Accepted Solution

by:
peterwest earned 100 total points
ID: 1463755
Hi there,

Just a couple of things that you may want to check:

1. The ftp address is malformed - your code says 'FTP://ftp.207.154.236.216' which isn't a valid ftp address - try 'ftp://207.154.236.216' instead.  Theoretically your code shouldn't even get as far as telling you that the anonymous user doesn't exist!!!

2. Is the remote system case sensetive or not??  If it is then check the capitalisation of the username and password.

I hope this helps - if you could step through the code to identify the line where the error occurs then this would maybe suggest some more ideas....

Pete

0
 
LVL 1

Expert Comment

by:hozempa
ID: 1463756
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.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1463757
Bought This Question.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now