Solved

Internet Control (FTP Upload)

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

773 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