Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

command line option for a new private window

more options

What command line option(s) should I use to open several URLs as tabs in a NEW private browsing window. So, if a private browsing window is already open, a new window should be opened.

I've checked https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options /quote -private-window URL Open URL in a new private browsing window. If a private browsing window is already open, a new tab is opened in the existing window. /unquote Why can one open new private windows pressing ctrl-shft-P, and apparently not in a command line ?

What command line option(s) should I use to open several URLs as tabs in a NEW private browsing window. So, if a private browsing window is already open, a '''new window should be opened'''. I've checked https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options /quote -private-window URL Open URL in a new private browsing window. If a private browsing window is already open, a new tab is opened in the existing window. /unquote Why can one open new private windows pressing ctrl-shft-P, and apparently not in a command line ?

Alla svar (1)

more options

If you use -private-window without a URL, you get the usual private window home page in the tab. That's the section just before the one you quoted.

That said, I think you have to do each tab separately. Let's assume your firefox.exe is at this location:

"C:\Program Files\Mozilla Firefox\firefox.exe"

You could use this batch file (save as "test.bat" in plain text format) to launch a new private window, then add 3 tabs:

@echo off
echo Opening a new private window
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window
REM Firefox needs a moment before we send it tabs to open
timeout 1
echo Opening three private tabs
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://support.mozilla.org/"
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://addons.mozilla.org/"
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://developer.mozilla.org"
echo Done!
pause