Windows – How to open a new tab in Chrome in an existing/running Chrome with cmd

cmd.execommand linegoogle-chromewindowswindows 10

I would like to know if it is possible, with cmd, to open a new tab with a specific URL in a running Google Chrome. If yes, How??

So here what I've tried with what happened.

  1. Command-Line Option to Open Chrome in New Window and Move Focus

    The solution of this question worked half, it opened a new tab with the needed URL, but also a new window. But I need to open a specific page in a running Google Chrome.

  2. https://bugs.chromium.org/p/chromium/issues/detail?id=26728

    According to what I've understood from this source, it is impossible to do so with cmd. I think I misunderstood, but I don't see where.

Also, the command, chrome ... doesn't seem to work. CMD says:

'chrome' is not recognized as an internal or external command,
operable program or a batch file

I'm using Windows 10.

Best Answer

If chrome is your default browser, you can try this:

start "" "http://www.google.com"

It will open the URL in the existing window or start your default browser if you haven't openend one yet.

You can also set the limitation to not open the link if the browser isn't running:

tasklist /nh|findstr "chrome.exe"&&start "" "http://www.google.com"

That will open the URL only if chrome.exe has been found within the running tasks.

Related Question