Opening Chrome From Command Line

I have the following batch file:

@echo off
REM Starts a chrome browser with multiple tabbed sites
C:\Users\UserName\AppData\Local\Google\Chrome\Application\chrome.exe "" ""

But when I run it, it causes the prompt to hang and renders it unusable until Chrome is closed. (Or, if I am not using the prompt and run it from the icon, it opens a blank prompt that is unusable and disappears when Chrome is closed.)

Is there any way to prevent this? I.E. once the webpages are open, the prompt is no longer tied up.

It opens the webpages just fine. I've also noticed that if there's already a chrome window open, the batch runs fine (leaving a usable prompt), adding the tabs to the existing chrome session.


Have a look into the start command. It should do what you're trying to achieve.

Also, you might be able to leave out path to chrome. The following works on Windows 7:

start chrome "" ""

C:\>start chrome "" works on Windows Vista.

Use the start command as follows.

start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

It will be better to close chrome instances before you open a new one. You can do that as follows:

taskkill /IM chrome.exe
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

That'll work for you.

Let's take a look at the start command.

Open Windows command prompt

To open a new Chrome window (blank), type the following:

start chrome --new-window 


start chrome

To open a URL in Chrome, type the following:

start chrome --new-window ""

To open a URL in Chrome in incognito mode, type the following:

start chrome --new-window --incognito ""


start chrome --incognito ""

you can create batch file and insert into it the bellow line:

cmd /k start chrome "

after that you do just double click on this batch file.

open command prompt and type

cd\ (enter)

then type

start chrome ""(any website you require)

Need Your Help

How to use resources in VC++?

c++ windows character-encoding visual-c++-2008

I am using VC 9 and I want to support Russian language for my application. I even created Russian resource strings. But my system has Russian Language setting. If it is not there every character di...