Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

I want to open a mixture of tabs and windows from a command line

  • 1 回覆
  • 1 有這個問題
  • 16 次檢視
  • 最近回覆由 FredMcD

more options

I want to open a mixture of tabs and windows from a command line in a BAT or CMD file but the command-line parameters do not behave in a usable way.

I want to have one window with 4 tabs, a second with 2 tabs and a further pair of single-tab windows. I have tried various combinations of command-line parameters such as -new-tab, -new-window and -url but the order in which the windows appear and what URLs appear in which tabs makes no sense.

If I run a BAT that has a separate call to firefox.exe for each new window instance, the command will not process a line until the previous firefox process has been shut down.

If I run a single call to firefox.exe with all of the desired URLs listed plus a mix of parameters, the process does not apply the parameters sequentially as entered, leaving me with duplicated tabs and windows which are not listed sequentially either.

Am I doing something wrong or is there a design flaw?

Thanks in advance to whoever tries to help.

I want to open a mixture of tabs and windows from a command line in a BAT or CMD file but the command-line parameters do not behave in a usable way. I want to have one window with 4 tabs, a second with 2 tabs and a further pair of single-tab windows. I have tried various combinations of command-line parameters such as -new-tab, -new-window and -url but the order in which the windows appear and what URLs appear in which tabs makes no sense. If I run a BAT that has a separate call to firefox.exe for each new window instance, the command will not process a line until the previous firefox process has been shut down. If I run a single call to firefox.exe with all of the desired URLs listed plus a mix of parameters, the process does not apply the parameters sequentially as entered, leaving me with duplicated tabs and windows which are not listed sequentially either. Am I doing something wrong or is there a design flaw? Thanks in advance to whoever tries to help.

所有回覆 (1)

more options

This is what a shortcut looks like. The 'http' tells the system it's a web link; http://www.movies.com/movie-times/06426-movie-times

This is what I use to open the Profile Manager; "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -p (Note the quotes)

For a list of command line options; https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options