为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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