BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

API to Get Browser Cache Folder?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
JJ
Guest





PostPosted: Mon May 21, 2007 5:46 am    Post subject: API to Get Browser Cache Folder? Reply with quote



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





PostPosted: Mon May 21, 2007 6:00 am    Post subject: Re: API to Get Browser Cache Folder? Reply with quote



"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





PostPosted: Mon May 21, 2007 7:00 am    Post subject: Re: API to Get Browser Cache Folder? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.