Jump to content

how can i get variable path to mozilla firefox cache?


Recommended Posts

so far i got this

how to get second part ??

$firefox_cache_dir = @UserProfileDir & "\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\"; german version

does anyone know more?

thanks

Edited by nobbe
Link to comment
Share on other sites

There are folders contain cache in the Temporary folder

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

Look at Temporary Looker at my sign , it contains code finding those folder

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

read the profiles.ini

$ini=(@userprofiledir & "\application data\mozilla\firefox\profiles.ini")

$prof_path=iniread($ini, "Profile0", "path", "default")

$fx_prof=StringSplit($prof_path, "/")

msgbox (0, "", $fx_prof[2])

Link to comment
Share on other sites

Look at Temporary Looker at my sign , it contains code finding those folder

ok i tried it - it works nicely, but only for internet explorer - i still have no clue on the firefox part :-(

here is a result from the log file

C:\Dokumente und Einstellungen\me\Lokale Einstellungen\Temporary Internet Files\Content.IE5\09C70JSZ\82

Link to comment
Share on other sites

thanks , but now the "MIDDLE" is missing :-(

my profiles is in

"c:\Dokumente und Einstellungen\me\Anwendungsdaten\Mozilla\Firefox\profiles.ini"

and contains

[General]

StartWithLastProfile=1

[Profile0]

Name=default

IsRelative=1

Path=Profiles/aob8m812.default

but i need to find the full path to

$firefox_cache_dir = "c:\Dokumente und Einstellungen\me\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\aob8m812.default\Cache\";

so

$firefox_cache_dir = @UserProfileDir & "\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\"; german

and i need a substitute for ""\Lokale Einstellungen\Anwendungsdaten\"

Link to comment
Share on other sites

$fSearch = FileFindFirstFile(@AppDataDir & "\Mozilla\Firefox\Profiles\*")
$fprofile = @UserProfileDir & "\Local Settings\Application Data\Mozilla\Firefox\Profiles\" & FileFindNextFile($fSearch)
$fCache = $fProfile & "\Cache"
MsgBox(0, "", $fCache)

Link to comment
Share on other sites

You could try:

@AppDataCommonDir

@AppDataDir

RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Local AppData")

( [ User\Local Settings\Application Data ] , not as macro yet)

for me, @AppDataDir fits, but mine is in User\Application Data

and not User\Local Settings\Application Data

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

i found something now

; Constants for Special Folders in Windows

Const $Internet_Explorer                   = 0x1
Const $Programs                          = 0x2
Const $Control_Panel                            = 0x3
Const $Printers_and_Faxes             = 0x4
Const $My_Documents      = 0x5
Const $Favorites                      = 0x6
Const $Startup        = 0x7
Const $My_Recent_Documents            = 0x8
Const $SendTo               = 0x9
Const $Recycle_Bin        = 0xa
Const $Start_Menu               = 0xb
Const $My_Music                          = 0xd
Const $My_Videos                            = 0xe
Const $Desktop              = 0x10
Const $My_Computer              = 0x11
Const $My_Network_Places                        = 0x12
Const $NetHood              = 0x13
Const $Fonts                            = 0x14
Const $Templates                            = 0x15
Const $All_Users_Start_Menu      = 0x16
Const $All_Users_Programs                  = 0x17
Const $All_Users_Startup                        = 0x18
Const $All_Users_Desktop                        = 0x19
Const $Application_Data      = 0x1a
Const $PrintHood                            = 0x1b
Const $Local_Settings_Application_Data      = 0x1c
Const $All_Users_Favorites            = 0x19
Const $Local_Settings_Temporary_Internet_Files  = 0x20
Const $Cookies              = 0x21
Const $Local_Settings_History               = 0x22
Const $All_Users_Application_Data            = 0x23
Const $Windows              = 0x24
Const $System32       = 0x25
Const $Program_Files                            = 0x26
Const $My_Pictures              = 0x27
Const $User_Profile       = 0x28
Const $Common_Files      = 0x2b
Const $All_Users_Templates            = 0x2e
Const $Administrative_Tools      = 0x2f
Const $Network_Connections            = 0x31
Const $CD_Burning_Folder                        = 0x003b


Func _Special_Folders ($Folder)
local $f1 
local $objShell = ObjCreate("Shell.Application")
;
;$objShell.open($objShell.NameSpace($Folder))   
;$f1 = $objShell.NameSpace($Folder).Self.Name; name only of folder 
$f1 = $objShell.NameSpace($Folder).Self.Path; !!!!!

return $f1 

EndFunc


; full path without substitutes
;$firefox_cache_dir = "c:\Dokumente und Einstellungen\me\Lokale Einstellungen\Anwendungsdaten\Mozilla\Firefox\Profiles\";

;;; !! now path to fire fox full 
$firefox_cache_dir = _Special_Folders($Local_Settings_Application_Data) & "\Mozilla\Firefox\Profiles\"; german
Link to comment
Share on other sites

$fSearch = FileFindFirstFile(@AppDataDir & "\Mozilla\Firefox\Profiles\*")
$fprofile = @UserProfileDir & "\Local Settings\Application Data\Mozilla\Firefox\Profiles\" & FileFindNextFile($fSearch)
$fCache = $fProfile & "\Cache"
MsgBox(0, "", $fCache)

thanks but i needed also to substitute "\Local Settings\" - because i cannot hardcode this !

Link to comment
Share on other sites

No need for Objects !

The Special Folders are all in "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"

$ff = @AppDataDir & "\Mozilla\Firefox\profiles.ini"
$prof_path=iniread($ff, "Profile0", "path", "default")
;~ MsgBox(0, '', $prof_path)
$localAppdata = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Local AppData")
$cache_Path = $localAppdata & "\Mozilla\Firefox\" & $prof_path & "\Cache"
If Not FileExists($cache_Path) Then $cache_Path = @AppDataDir & "\Mozilla\Firefox\" & $prof_path & "\Cache"
If Not FileExists($cache_Path) Then Exit MsgBox(0, 'Error', "No Firefox Cache found")
MsgBox(0, 'Cache Path:', $cache_Path)

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...