?
Solved

Inet.Execute vs Inet.OpenURL

Posted on 1998-08-07
3
Medium Priority
?
733 Views
Last Modified: 2010-05-18
Hi,

What's the difference between the 2 above functions?
I need to use one of it in my ActiveX control to retreive some binary files (file size can variy from few hundred kbytes to few megabytes) across the intranet. which one is more advisable to use?

Thanks in advance!!
0
Comment
Question by:totoro030898
[X]
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
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 400 total points
ID: 1468215
b() = Inet1.OpenURL(strURL, icByteArray)
OpenURL both opens and returns the contents of the internet address.  If you want to save this to a file, you would have to do that in a seperate step.  This is generally used for small files and generally to display the comtents of text files.

Inet1.Execute txtURL.Text, "GET GetThis.txt C:\MyDocuments\GotThis.txt"
Is true FTP file transfer.  This allows you to retrieve a file from the internet and save it directly to your disk.
0
 

Author Comment

by:totoro030898
ID: 1468216
hi, for Inet.Execute, does that mean if i'm getting a file from a server that does not support FTP but only HTTP, i will fail ?
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1468217
I believe this is true, although I have no information on it.  You might want to try it to see.

Thanks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 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…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 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