Solved

Internet Control (FTP Upload)

Posted on 2000-04-14
4
156 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
Comment Utility
Post some of the other code you're using.
0
 
LVL 9

Expert Comment

by:GivenRandy
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

744 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

17 Experts available now in Live!

Get 1:1 Help Now