Solved

Internet Control (FTP Upload)

Posted on 2000-04-14
4
157 Views
Last Modified: 2008-02-07
I am using Internet Control named "InetFTP"
If I execute this code,

InetFTP.Execute "ftp://10.1.2.64", "PUT " & strSource & " " & strDest
This works fine. But if I change to the below code,

dim strURL as string
strURL = "ftp://10.1.2.64" or
strURL = "ftp://10.1.2.64" & ""

InetFTP.Execute strURL, "PUT " & strSource & " " & strDest
I got the error message saying "URL is malformed", Why?
0
Comment
Question by:kennethan
  • 2
4 Comments
 
LVL 4

Expert Comment

by:gcs001
ID: 2718424
Post some of the other code you're using.
0
 
LVL 9

Expert Comment

by:GivenRandy
ID: 2829728
I couldn't duplicate your problem.  Try doing this -- set your URL property and then do:

Inet1.Execute , "Get ..."

Note the comma (first parameter is skipped).
0
 

Accepted Solution

by:
JoeyT earned 15 total points
ID: 2831375
What I did was similar to you but I loaded the Inet control a little differently. I set my DNSAddress as a Global variable. I have my Inet Control on my form and I put the code below in the module.

   frmImportIndex.Inet2.URL = DNSAddress
   frmImportIndex.Inet2.PassWord = SWord
   frmImportIndex.Inet2.UserName = SName
   frmImportIndex.txtFTPReceive.Text = frmImportIndex.Inet2.OpenURL

   Cmd$ = "GET c" + SalesNumber + ".exe

   frmImportIndex.Inet2.Execute frmImportIndex.Inet2.URL, Cmd$

try loading the strURL in to the INet URL before you execute the Control like I did above.

Hope this helps.
JoeyT
0
 

Expert Comment

by:JoeyT
ID: 2831378
I have a PUT statement also for this if you would ratehr see that. I wasnt thinking when I posted it, sorry.
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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

910 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

22 Experts available now in Live!

Get 1:1 Help Now