Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 888
ciso Avatar asked Apr 18 '14 18:04

ciso


People also ask

What is the command to open new window in Chrome?

To open a new window, use a keyboard shortcut: Windows & Linux: Ctrl + n. Mac: ⌘ + n.

How do I open Chrome from the command line?

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.

How do I open Chrome from command line Linux?

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.


2 Answers

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)

like image 166
QuickFix Avatar answered Oct 08 '22 03:10

QuickFix


In Windows 10, following command works:

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

This works perfectly in cmd.

like image 39
Rushabh Agarwal Avatar answered Oct 08 '22 03:10

Rushabh Agarwal