Open chrome in windows from the command line in a new window

I tried this command from the cmd prompt:

start "c:\program files (x86)\google\chrome\application\chrome.exe" --new-window "http://localhost:8080:/debug?port=5858"

and I get "windows cannot find" - a new window

If I delete the start command, it works fine. If I left the start command but deleted -new-parm, then the URL will open in my browser by default (i.e.).

I tried several options above, but can't make it work.

What is the correct syntax for the start command to open chrome with the given URL in a new window?

+7
source share
3 answers

The answer is: Using the "start" command with parameters passed to the running program

start "" "c:\program files (x86)\google\chrome\application\chrome.exe" --new-window "http://localhost:8080:/debug?port=5858"

(add empty header parameter at the beginning of the line)

+18

Windows 10 :

start chrome --new-window "https://www.facebook.com"

cmd.

+3

I am using Windows 10 and the following command works:

start chrome.exe
0
source

Source: https://habr.com/ru/post/1673222/


All Articles