🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by JJ Mon, 21 May 2007 00:46
API to Get Browser Cache Folder?
#1973
Author: JJ
Date: Mon, 21 May 2007 00:46
11 lines
826 bytes
My program needs to get the "Cache Directory:"
that shows when you type:

about:cache

in FireFox.

Any ideas?

JJ
Re: API to Get Browser Cache Folder?
#1974
Author: Remy Lebeau (TeamB)
Date: Mon, 21 May 2007 01:00
25 lines
1649 bytes
"JJ" <JJ7688@nospam.com> wrote in message
news:4650ebe6$1@newsgroups.borland.com...

> 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
Re: API to Get Browser Cache Folder?
#1975
Author: JJ
Date: Mon, 21 May 2007 02:00
16 lines
1358 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads