Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Internet Control (FTP Upload)

Posted on 2000-04-14
4
159 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

789 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