Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Inet.Execute vs Inet.OpenURL

Posted on 1998-08-07
3
Medium Priority
?
751 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…
Suggested Courses

636 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