clearing firefox and chrome internet caches using VB
-
23 April 2012 11:41
Hi
I have written a disk cleanup program which works well in deleting temp files etc etc an works fine with IE temporary internet files, history and cookies
I am now trying to add functionality so it can clean firefox and google chrome caches, cookies and history - but finding it not to be such a simple procedure as it is with IE
Has anyone had any succes doing something like this?
Darren Rose
- Dipindahkan oleh Mike FengMicrosoft Contingent Staff 24 April 2012 7:34 The third party (From:Visual Basic Language)
Semua Balasan
-
23 April 2012 13:17
Hi,
You could look at the source code or ask in a FireFox/Chrome development forum. It's likely you'll find this more easily in a FireFox/Chrome development forum rather than in a general VB programming forum (as it happens to be just the language you'll use but it's unrelated to what exactly should be done to clear the cache in those browsers).
Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".
- Disarankan sebagai Jawaban oleh Mike FengMicrosoft Contingent Staff 24 April 2012 7:32
- Saran Jawaban dibatalkan oleh wingers 24 April 2012 9:05
-
23 April 2012 13:32
Thanks Patrice
I was hoping someone here might know - but will post on firefox and chrome forum to see if I can get an answer
Darren Rose
-
23 April 2012 14:06
Chrome sorted - just need firefox done now
For reference:-
Chrome Cache (temporary internet files) = C:\Users\{profile name}\AppData\Local\Google\Chrome\User Data\Default\Cache\*.*
Chrome Cookies= C:\Users\{profile name}\AppData\Local\Google\Chrome\User Data\Default\Cookies
Chrome History= C:\Users\{profile name}\AppData\Local\Google\Chrome\User Data\Default\History "and" History Index {date}
Darren Rose
-
23 April 2012 14:54
According to https://developer.mozilla.org/En/A_Brief_Guide_to_Mozilla_Preferences FF stores its preferences in a file. Try perhaps to browse this file to see if you see a line for the settings you are looking for.
Note also that what you shown us for Chrome is likely just the default. I would have expected rather something like reading the registry to find out the possibly user defined cache location and then only clearing this directory (same likely in IE, do you use blindly default values or the actual settings possibly previously altered by the user ?). Note that knowing you'll do that that with VB is totally irrelevant here. You are looking for someone who knows about IE, FF or Chrome settings and possibly nothing at all about VB rather than the other way round...
Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".
- Diedit oleh Patrice ScribeMVP 23 April 2012 14:54
-
23 April 2012 15:09
can't imagine many "home" users changing the settings to anything other than default
chrome locations don't appear in registry so couldn't use that method
my code checks to make sure location exists first
IE locations are got using Environment.SpecialFolder.InternetCache, Environment.SpecialFolder.History and Environment.SpecialFolder.Cookies so are always correct
Darren Rose
-
23 April 2012 16:52
Unlikely but if one does this, your tool will appear to have no effect at all...
Apparently Chrome uses a SQLite file to store these settings. Try http://unlockforus.blogspot.fr/2008/09/google-chrome-temporary-files-location.html
Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".
- Diedit oleh Patrice ScribeMVP 23 April 2012 16:53
-
23 April 2012 16:55
Unlikely but if one does this, your tool will appear to have no effect at all...
Well actually it will - as it checks to see if Chrome is installed - if it is installed and the default path doesn't exist then it prompts the user to clean the files using chrome instead
Thanks will take a look at that link
Darren Rose
-
24 April 2012 9:08
Not sure why moved to off-topic? it was posted in a VB forum and was a VB question?!?!?
Found answer anyway - by looking at following code:-
http://www.vbforums.com/showthread.php?t=650252
Darren Rose
- Ditandai sebagai Jawaban oleh wingers 24 April 2012 9:08