Inet control problem

Trying to transfer a file from our network to a remote server using the inet control.  It executes with no errors, but the file does get transferred.  

Here's my code:
inetDYC.URL = "<ip address>"
inetDYC.UserName = "<username>"
inetDYC.Password = "<password>"
inetDYC.Execute "put c:\temp\dyc_testfile.txt *.*"
Do While inetDYC.StillExecuting
   DoEvents
Loop
MsgBox "Finished"

The only inet property I set at design time is Protocol = 2 - icFTP (which automatically changed the RemotePort property to 21).

I can ftp the file from a command window without any problems.  And I've super-double checked the URL, username and password several times.

Looking forward to your responses.
MariaHaltAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MariaHaltAuthor Commented:
Sorry, there's a word missing in my original question..."...but the file does NOT get transferred..."  That's why it's a problem.
0
MariaHaltAuthor Commented:
By the way, the inet control is the Microsoft Internet Transfer Control (incase that wasn't clear).
0
sakuya_suCommented:
maybe you cant use IP address in ur URL list..

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q163653

in there, all examples are done with a properly URL name, so maybe try that?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MariaHaltAuthor Commented:
sakuya_su,

Thank you for responding to my question.  I don't have the URL so I wasn't able to test your suggestion.  However, it got me looking more closely at my code and I modified it slightly, and it is now working (so I'm going to give you the points)!  

This is what I did:

inetDYC.Protocol = icFTP
inetDYC.RemoteHost = "<ip address>"
inetDYC.UserName = "<username>"
inetDYC.Password = "<password>"
inetDYC.Execute inetDYC.URL, "put c:\temp\dyc_testfile.txt dyc_testfile.txt"
Do While inetDYC.StillExecuting
   DoEvents
Loop
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.