Solved

Operate on IE Cache

Posted on 1998-11-04
7
162 Views
Last Modified: 2010-04-30
I have a program that fetches HTML Files from the Internet. Rather then storing them in any directory, I would like to place them in IE4 cache.  Also I would like to check beforehand, whether the file is already in the cache. If possible I would like source code for two functions:
function InCache(FullUrl as String) as boolean
function PutToCache(FullUrl as String,HTMLFile as String) as Boolean
I use IE4.0 and VB5
0
Comment
Question by:VB-tinkerer
7 Comments
 
LVL 1

Expert Comment

by:zivf
ID: 1443253
use WIN32API to get the windows directory and then look for the directory called "Temporary Internet Files".
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1443254
IE uses a more-or-less randomly assigned number to name the files in it's cache. This means that you have no real way to know in advance what to call the files and even if you manged to copy them into the cache directory IE wouldn't know what they were for?

M

0
 

Expert Comment

by:vienna
ID: 1443255

Unless you were to buld your own cache.
Save them in your file using the GetTempfilename API,
then using the beforenavigate2, check in your folder.

I can not post all the code right now,
but I assure you, it can be done.

We have made something simular.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:VB-tinkerer
ID: 1443256
I want to achieve a similar function as the Update Supscription - but with programmatical control over what files to fetch.  I was hoping that there was an API call or something similar to achieve this.

But any other means that will allow me to get these files into the cache for IE to use when working in offline mode is fine. (Vienna I am not sure your method would work in this scenario - if you think it would, I am certainly interested!)
0
 

Author Comment

by:VB-tinkerer
ID: 1443257
I want to achieve a similar function as the Update Supscription - but with programmatical control over what files to fetch.  I was hoping that there was an API call or something similar to achieve this.

But any other means that will allow me to get these files into the cache for IE to use when working in offline mode is fine. (Vienna I am not sure your method would work in this scenario - if you think it would, I am certainly interested!)
0
 
LVL 4

Accepted Solution

by:
idcanada earned 500 total points
ID: 1443258

Hi,
I have just finished running a few tests and if you have not set the flag that
prevents the operation on IE Cache, then you are already running on it.

Regards
0
 

Author Comment

by:VB-tinkerer
ID: 1443259
Icanda, I don't understand your answer. I am using the Microsoft Internet  Transfer Control to fetch the files and that does not appear to put the files in the internet cache.  Are you assuming I use a different method?  If so, could you give me some code snippets?  And does this method tell me whether a file is in the cache?
Thanks in Advance.
Erich
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now