🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1974

Re: API to Get Browser Cache Folder?

#1974
From: 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
Technical Details
Message-ID: <4650ef75$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4650ebe6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6d8fbc1e1ca5c388
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4650ebe6$1@newsgroups.borland.com>
Subject: Re: API to Get Browser Cache Folder? 
Date: Sun, 20 May 2007 18:00:51 -0700
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.82.60.244
Message-ID: <4650ef75$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1179709301 75.82.60.244 (20 May 2007 18:01:41 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail