 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
JJ Guest
|
Posted: Mon May 21, 2007 5:46 am Post subject: API to Get Browser Cache Folder? |
|
|
My program needs to get the "Cache Directory:"
that shows when you type:
about:cache
in FireFox.
Any ideas?
JJ |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon May 21, 2007 6:00 am Post subject: Re: API to Get Browser Cache Folder? |
|
|
"JJ" <JJ7688 (AT) nospam (DOT) com> wrote in message
news:4650ebe6$1 (AT) newsgroups (DOT) borland.com...
| Quote: | My program needs to get the "Cache Directory:"
that shows when you type:
about:cache
in FireFox.
|
There is no API specifically for that. Each browser creates and
maintains its own cache folder. Only the browser knows where that is
located.
With that said, you can try using SHGetSpecialFolderLocation() or
similar function to find the user's "Application Data" folder, then
append "Mozilla\Firefox\Profiles\<profile>\Cache" to that, where
"<profile>" is the FireFox profile being used. Do note, however, that
the cache folder's location is customizable via the
"browser.cache.disk.parent_directory" setting in the browser's
"about:config" page.
Gambit |
|
| Back to top |
|
 |
JJ Guest
|
Posted: Mon May 21, 2007 7:00 am Post subject: Re: API to Get Browser Cache Folder? |
|
|
Yes, I am aware of
SHGetSpecialFolderLocation() possible solution
and the "browser.cache.disk.parent_directory".
I was hoping for a reg-key or a file in the
FireFox folder that stores the "profile.default"
folder name.
The "profile.default" changes from PC to PC
and there is where the Cache is, that's the
problem I am having. With code I need to get
the "profile.default" folder name first which
sometimes is something like wqjosaynd.default
JJ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|