This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

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 ?

All Replies (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