X
Πατήστε εδώ για μετάβαση στην έκδοση της ιστοσελίδας για κινητές συσκευές.

Φόρουμ υποστήριξης

How do I open a private window with a url from command line windows 10?

Δημοσιεύτηκε

I've tried: "C:\Program Files\Mozilla Firefox\firefox.exe" -private google.com "C:\Program Files\Mozilla Firefox\firefox.exe" google.com -private "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window google.com "C:\Program Files\Mozilla Firefox\firefox.exe" google.com -private-window all with no luck. What am I doing wrong? From reading the developer documentation ' "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window url' should work but it doesn't. Thanks.

I've tried: "C:\Program Files\Mozilla Firefox\firefox.exe" -private google.com "C:\Program Files\Mozilla Firefox\firefox.exe" google.com -private "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window google.com "C:\Program Files\Mozilla Firefox\firefox.exe" google.com -private-window all with no luck. What am I doing wrong? From reading the developer documentation ' "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window url' should work but it doesn't. Thanks.
Παράθεση

Επιπρόσθετες λεπτομέρειες συστήματος

Εφαρμογή

  • Πλατφόρμα χρήστη: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Περισσότερες πληροφορίες

jscher2000
  • Top 10 Contributor
8758 λύσεις 71655 απαντήσεις
Δημοσιεύτηκε

What happens when you try this (all one line):

"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window https://www.userchrome.org/

I would expect a new private window to open to that URL. What do you get?

  • Error message
  • New window, but page is blank (or it's your home page)
  • New window with the expected page but it's not a private window
  • Something else
What happens when you try this (all one line): "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window https://www.userchrome''.''org/ I would expect a new private window to open to that URL. What do you get? * Error message * New window, but page is blank (or it's your home page) * New window with the expected page but it's not a private window * Something else
Σάς φάνηκε χρήσιμο;
Παράθεση
jscher2000
  • Top 10 Contributor
8758 λύσεις 71655 απαντήσεις
Δημοσιεύτηκε

By the way, I usually paste into the search box on the Windows 10 Taskbar and press the Enter key to execute the command line. You also could use the Run dialog (Windows key + R to open).

By the way, I usually paste into the search box on the Windows 10 Taskbar and press the Enter key to execute the command line. You also could use the Run dialog (Windows key + R to open).
Σάς φάνηκε χρήσιμο;
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

jscher2000 said

What happens when you try this (all one line): "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window https://www.userchrome.org/ I would expect a new private window to open to that URL. What do you get?
  • Error message
  • New window, but page is blank (or it's your home page)
  • New window with the expected page but it's not a private window
  • Something else

When I paste that command in and press enter, it opens a new tab and goes to that URL but I dont think its a private window. The address appears in history so that makes me think its not a private window. I'm running all this from the command line.

''jscher2000 [[#answer-1265896|said]]'' <blockquote> What happens when you try this (all one line): "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window https://www.userchrome''.''org/ I would expect a new private window to open to that URL. What do you get? * Error message * New window, but page is blank (or it's your home page) * New window with the expected page but it's not a private window * Something else </blockquote> When I paste that command in and press enter, it opens a new tab and goes to that URL but I dont think its a private window. The address appears in history so that makes me think its not a private window. I'm running all this from the command line.

Τροποποιήθηκε στις από το χρήστη mustang.4222

Σάς φάνηκε χρήσιμο;
Παράθεση
jscher2000
  • Top 10 Contributor
8758 λύσεις 71655 απαντήσεις
Δημοσιεύτηκε

Yes, a new tab in an existing window definitely would not be a new private window.

What do you mean by "the command line"?

Yes, a new tab in an existing window definitely would not be a new private window. What do you mean by "the command line"?
Σάς φάνηκε χρήσιμο;
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

jscher2000 said

Yes, a new tab in an existing window definitely would not be a new private window. What do you mean by "the command line"?

command line meaning command prompt.

''jscher2000 [[#answer-1265906|said]]'' <blockquote> Yes, a new tab in an existing window definitely would not be a new private window. What do you mean by "the command line"? </blockquote> command line meaning command prompt.
Σάς φάνηκε χρήσιμο;
Παράθεση
jscher2000
  • Top 10 Contributor
8758 λύσεις 71655 απαντήσεις
Δημοσιεύτηκε

Hmm, it should still work in cmd.exe.

What if you try this:

"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "about:privatebrowsing"

Do you get a page warning that it's not a private window?

Can you launch private windows from inside Firefox?

Hmm, it should still work in cmd.exe. What if you try this: "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "about:privatebrowsing" Do you get a page warning that it's not a private window? Can you launch private windows from inside Firefox?
Σάς φάνηκε χρήσιμο;
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

jscher2000 said

Hmm, it should still work in cmd.exe. What if you try this: "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "about:privatebrowsing" Do you get a page warning that it's not a private window? Can you launch private windows from inside Firefox?

yeah, it opens a new tab and says "you are currently not in a private window." plus a button that says "open a private window". yeah, I can open private windows by using the keyboard shortcut or going through the menu.

''jscher2000 [[#answer-1265909|said]]'' <blockquote> Hmm, it should still work in cmd.exe. What if you try this: "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "about:privatebrowsing" Do you get a page warning that it's not a private window? Can you launch private windows from inside Firefox? </blockquote> yeah, it opens a new tab and says "you are currently not in a private window." plus a button that says "open a private window". yeah, I can open private windows by using the keyboard shortcut or going through the menu.
Σάς φάνηκε χρήσιμο;
Παράθεση
cor-el
  • Top 10 Contributor
  • Moderator
17521 λύσεις 158427 απαντήσεις
Δημοσιεύτηκε

What makes you think that this is not a Private Browsing mode window?

What makes you think that this is not a Private Browsing mode window?
Σάς φάνηκε χρήσιμο;
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

cor-el said

What makes you think that this is not a Private Browsing mode window?

websites show up in the history? I don't know how to tell if the window that opens is private other than if it leaves a history. unless thats wrong.

''cor-el [[#answer-1265917|said]]'' <blockquote> What makes you think that this is not a Private Browsing mode window? </blockquote> websites show up in the history? I don't know how to tell if the window that opens is private other than if it leaves a history. unless thats wrong.
Σάς φάνηκε χρήσιμο;
Παράθεση
jscher2000
  • Top 10 Contributor
8758 λύσεις 71655 απαντήσεις
Δημοσιεύτηκε

I can't explain why the command-line switch isn't working normally on your Firefox.

What about a regular new window, is it also converted to a new tab?

"C:\Program Files\Mozilla Firefox\firefox.exe" -new-window https://www.userchrome.org/

If so, is it possible you have any extensions that intercept new windows and convert them to new tabs instead?

I can't explain why the command-line switch isn't working normally on your Firefox. What about a regular new window, is it also converted to a new tab? "C:\Program Files\Mozilla Firefox\firefox.exe" -new-window https://www.userchrome''.''org/ If so, is it possible you have any extensions that intercept new windows and convert them to new tabs instead?
Σάς φάνηκε χρήσιμο;
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

jscher2000 said

I can't explain why the command-line switch isn't working normally on your Firefox. What about a regular new window, is it also converted to a new tab? "C:\Program Files\Mozilla Firefox\firefox.exe" -new-window https://www.userchrome.org/ If so, is it possible you have any extensions that intercept new windows and convert them to new tabs instead?

When I enter that command, it opens a new window. I don't have any extensions that should affect the opening of tabs or windows.

''jscher2000 [[#answer-1265935|said]]'' <blockquote> I can't explain why the command-line switch isn't working normally on your Firefox. What about a regular new window, is it also converted to a new tab? "C:\Program Files\Mozilla Firefox\firefox.exe" -new-window https://www.userchrome''.''org/ If so, is it possible you have any extensions that intercept new windows and convert them to new tabs instead? </blockquote> When I enter that command, it opens a new window. I don't have any extensions that should affect the opening of tabs or windows.
Σάς φάνηκε χρήσιμο;
Παράθεση
Κάντε μια ερώτηση

Πρέπει να συνδεθείτε στο λογαριασμό σας για να απαντήσετε στις δημοσιεύσεις. Παρακαλούμε ξεκινήστε μια νέα ερώτηση, αν δεν έχετε ήδη λογαριασμό.