在新窗口中打开 Chrome 并移动焦点的命令行选项

Isa*_*man 38 google-chrome command-line

通过命令行运行 chrome 的默认行为:

chrome www.google.com
Run Code Online (Sandbox Code Playgroud)

在现有实例中打开一个新选项卡,chrome并将焦点从终端移动到新创建的选项卡。

添加new-window开关:

chrome --new-window www.google.com
Run Code Online (Sandbox Code Playgroud)

在新窗口中打开 chrome 但不移动焦点。

我应该使用哪些选项来打开一个新窗口并将焦点切换到该窗口?

注意:我使用的是 Windows 7。

小智 38

试试这个

start chrome /new-window www.google.com

在新的 chrome 实例中打开 google.com。

  • 惊人的。`chromium --new-window` 似乎适用于 Linux。联机帮助页中缺少。 (6认同)
  • 在 Windows 10 上,这“不会”启动新进程。 (3认同)