Solved

How to change the caching folder (that default with \Local Settings\Temporary Internet Files )?

Posted on 2006-11-04
8
155 Views
Last Modified: 2013-11-20
Hi experst,
I use the CViewHtml to do browser a URL of html page on my app
I used this  Navigate(strURL,NULL,NULL,NULL,NULL); function, this will auto cache the html to \Local Settings\Temporary Internet Files

But now, I want to change this to my caching folder, can we do this and how?
Please help me with this

Thank in advance!
0
Comment
Question by:Mobinex
  • 3
8 Comments
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 500 total points
Comment Utility
To change the path of the IE cache is to go through the Internet Explorer User Interface manually(IE->Options->General->Settings->Move Folder).

There are registry keys holding the path, and you can change them to be your own desired path. However, the "Temporary Internet Files" is not just a folder, it’s a shell extension and it’s not used by IE only.

Have a look at following registry keys probably you need to change them programatically :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths


-MAHESH
0
 
LVL 22

Expert Comment

by:mahesh1402
Comment Utility
The solution specified above to change cache path via registry keys works :

you just need to change following registry keys programatically :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths

if you try to change folder manually using IE->Options->General->Settings->Move Folder you will see changes in above registry keys.

-MAHESH
0
 
LVL 22

Expert Comment

by:mahesh1402
Comment Utility
As I said Solution given above works to change cache path via registry keys...
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

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

11 Experts available now in Live!

Get 1:1 Help Now