Solved

Operate on IE Cache

Posted on 1998-11-04
7
164 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

696 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