Solved

Inet.Execute vs Inet.OpenURL

Posted on 1998-08-07
3
701 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
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I believe this is true, although I have no information on it.  You might want to try it to see.

Thanks.
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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now