Clear Cache, History, Files and Downloads

Posted on 2001-06-12
Medium Priority
Last Modified: 2010-04-06
Need code sample that will clear the History, Cache and Temp files for Internet Explorer and Netscape. Other supported browsers are a plus.
Question by:2amdevelopment
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
LVL 17

Accepted Solution

inthe earned 600 total points
ID: 6184601
for ie you can find some infos here for that:


im not sure on netscape it wouldnt be the correct way but as it stores the cache in its own directory ie
j:\netscape\cache you may be able to simply use findfirst findnext  and deletefile  to delete the files..
(untested on netscape ,ive done it before for ie but its not the proper way to do it and can cause problems.)

Regards Barry

Expert Comment

ID: 6185414
a good thing to know is that you can find out where ie is storing chached files in the registry (on win 95, ie 5.5 its the key:

HKEY_Local_Machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\

here u will finde paths to cache, history and more


Author Comment

ID: 6187228
The IE and Delphi components look good. However the clear Cache component does not appear to clear all of the cache. When I compile it I get a date read error on execution. I would rather see code that performed the tasks so I can learn rather than use just a component.
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!

LVL 27

Expert Comment

by:Asta Cu
ID: 6906955
Please update the experts here who have so willingly stepped in to help you, since much time has passed since your last comments, and Email notifications may not have been generated to the participating experts here due to some problems at that time.

Somewhat off-topic, but important.

****************************** ALERT********************************
WindowsUpdate - Critical Update alert March 28, 2002 from Microsoft
Microsoft Security Bulletin MS02-015  
28 March 2002 Cumulative Patch for Internet Explorer
Originally posted: March 28, 2002
Who should read this bulletin: Customers using Microsoft® Internet Explorer
Impact of vulnerability: Two vulnerabilities, the most serious of which would allow script to run in the Local Computer Zone.
Maximum Severity Rating: Critical
Recommendation: Consumers using the affected version of IE should install the patch immediately.
Affected Software:
Microsoft Internet Explorer 5.01
Microsoft Internet Explorer 5.5
Microsoft Internet Explorer 6.0

Thought you'd appreciate knowing this.
LVL 27

Expert Comment

by:Asta Cu
ID: 7133981
This question is still open today, have you been helped here or is more needed?  If you need special handling help, post your intentions here please, and then create a new ZERO point question in the Community Support topic area with your request and include this link.

Expert Comment

ID: 7134012
What I need is some code or a componenet that will clear the IE5 Cache and History. These components have been around a bit, and I get exception faults when I use them. Does anyone have another example of how to accomplish this...?


Expert Comment

ID: 7134053
Are 2amdevelopment and quantum2 the same person.  Only one account is authorized for each person.

Feedback please

E-E Moderator

Expert Comment

ID: 7134301
I had an old login from work that was 2am I asked for that one to be deleted. I do all of my answering, and posting from Q2.

LVL 14

Expert Comment

ID: 9286055
No comment has been added lately (425 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to inthe http:#6184601

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --


EE Cleanup Volunteer

Featured Post

Industry Leaders: 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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

765 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