Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Nummer anzurufen, sie per SMS zu kontaktieren oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

How can I retrieve the current profile path & name from a command line?

  • 6 Antworten
  • 1 hat dieses Problem
  • 227 Aufrufe
  • Letzte Antwort von FredMcD

more options

I'm trying to create a DOS batch file to clear the current profile's cache (web site data only, not cookies). I have it working fine using a hard-coded path of the existing profile (I only have one profile), but I'd like it to remain viable in case a newer profile is created for whatever reason. Is there a way to retrieve the path into a variable?

Thank you!

I'm trying to create a DOS batch file to clear the current profile's cache (web site data only, not cookies). I have it working fine using a hard-coded path of the existing profile (I only have one profile), but I'd like it to remain viable in case a newer profile is created for whatever reason. Is there a way to retrieve the path into a variable? Thank you!

Ausgewählte Lösung

I don't think there is such an option: https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options

Sorry, this link no longer in use.


We do not recommend using other programs to clean Firefox because they could corrupt the files. Also, the browser can clean itself.


Type about:preferences#privacy<enter> in the address box. The button next to History, select Use Custom Settings.

Turn off Always Use Private Browsing Mode Turn on Remember My Browsing And Download History At the bottom of the page, turn on Clear History When Firefox Closes. At the far right, press the Settings button. Turn on ONLY Cache and Form And Search History leaving the others off.

Diese Antwort im Kontext lesen 👍 1

Alle Antworten (6)

more options

type about:profiles in the firefox address bar and hit enter

more options

Ausgewählte Lösung

I don't think there is such an option: https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options

Sorry, this link no longer in use.


We do not recommend using other programs to clean Firefox because they could corrupt the files. Also, the browser can clean itself.


Type about:preferences#privacy<enter> in the address box. The button next to History, select Use Custom Settings.

Turn off Always Use Private Browsing Mode Turn on Remember My Browsing And Download History At the bottom of the page, turn on Clear History When Firefox Closes. At the far right, press the Settings button. Turn on ONLY Cache and Form And Search History leaving the others off.

Geändert am von FredMcD

more options

Once upon a time I wrote a VBScript to parse the installs.ini file for default profile paths and build a session history file backup script. I'm not sure it works in 2022, but if you want to take a look for inspiration:

https://gist.github.com/jscher2000/9bb73efe9046bcdbb1c8a31f78386d21

more options

jscher2000 said

Once upon a time I wrote a VBScript...

Thank you! I'll look into this for sure.


FredMcD said

We do not recommend using other programs to clean Firefox because they could corrupt the files. Also, the browser can clean itself. Type about:preferences#privacy<enter> in the address box. The button next to History, select Use Custom Settings. Turn off Always Use Private Browsing Mode Turn on Remember My Browsing And Download History At the bottom of the page, turn on Clear History When Firefox Closes. At the far right, press the Settings button. Turn on ONLY Cache and Form And Search History leaving the others off.

Thank you for this - I wasn't pursuing a solution within FF because I only knew of the option to clear BOTH cache and cookies when FF exits. This looks like a great way to do what I want. (I will say, it seems to me that the option in Settings should allow selection of cookies separately from cache, just like it does in the nearby "Clear Data" function.)

I appreciate the help!

Geändert am von mike.fairleigh

more options

FredMcD said

Type about:preferences#privacy<enter> in the address box. The button next to History, select Use Custom Settings. Turn off Always Use Private Browsing Mode Turn on Remember My Browsing And Download History At the bottom of the page, turn on Clear History When Firefox Closes. At the far right, press the Settings button. Turn on ONLY Cache and Form And Search History leaving the others off.

This is the way. And now I understand what I was missing all along. Thank you!

more options

Glad to help. Safe Surfing.