-1

The answers of this question show how to open URL in Microsoft Edge from the command line. But these codes simply open a new tab in the foreground.

How to open a new tab silently in the browser in the background using a windows command line?

Edit (the question seems to have been closed by mistake): this question has nothing to do with "a general computing hardware and software". It's a coding question.

JinSnow
  • 1,321
  • 4
  • 25
  • 46
  • Browser window in background or tab in background? – Anders Feb 09 '22 at 12:42
  • @Anders How to open a new tab silently (I edited my question to clarify). Thanks for your input! – JinSnow Feb 10 '22 at 10:05
  • 1
    Well, if this is the case, I think it may not be possible, I refer to [this link](https://peter.sh/experiments/chromium-command-line-switches/) and did not find the relevant command line arguments. – Xudong Peng Feb 11 '22 at 09:27

1 Answers1

0

You can try using --new-window and --start-minimized these two arguments, I think this will meet your needs. Like this:

msedge.exe --new-window --start-minimized https://www.google.com

In my tests, it only opens in the background and doesn't cover the current screen. However, the page opened in this way is a new window, and will not list in the existed browser window as a tab.

Xudong Peng
  • 930
  • 1
  • 3
  • 6