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 can not find '--new-window'
If I remove the start command, it works fine. If I leave the start command but remove the --new-window parm then the url is opened in my default browser (ie).
I've tried several variations of the above but can't get it to work.
What is the correct syntax for the start command to open chrome with the given url in a new window?
To open a new window, use a keyboard shortcut: Windows & Linux: Ctrl + n. Mac: ⌘ + n.
Open Chrome Using Command PromptOpen Run by typing “Run” in the Windows 10 search bar and selecting the “Run” application. Here, type Chrome and then select the “OK” button. The web browser will now open.
Go to Desktop > Applications. Type Terminal in the search bar and click on the first result. Or you can skip the lengthy process and open a new Terminal session by pressing Ctrl + Alt + T on your keyboard. This will load up Google Chrome with the default homepage.
Answer is there : Using the "start" command with parameters passed to the started program
start "" "c:\program files (x86)\google\chrome\application\chrome.exe" --new-window "http://localhost:8080:/debug?port=5858"
(add empty title parameter at the beginning of the line)
In Windows 10, following command works:
start chrome --new-window "https://www.facebook.com"
This works perfectly in cmd.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With