How to launch a Google Chrome Tab with specific URL using C# How to launch a Google Chrome Tab with specific URL using C# google-chrome google-chrome

How to launch a Google Chrome Tab with specific URL using C#


As a simplification to chrfin's response, since Chrome should be on the run path if installed, you could just call:

Process.Start("chrome.exe", "http://www.YourUrl.com");

This seem to work as expected for me, opening a new tab if Chrome is already open.


// open in default browserProcess.Start("http://www.stackoverflow.net");// open in Internet ExplorerProcess.Start("iexplore", @"http://www.stackoverflow.net/");// open in FirefoxProcess.Start("firefox", @"http://www.stackoverflow.net/");// open in Google ChromeProcess.Start("chrome", @"http://www.stackoverflow.net/");


UPDATE: Please see Dylan's or d.c's anwer for a little easier (and more stable) solution, which does not rely on Chrome beeing installed in LocalAppData!


Even if I agree with Daniel Hilgarth to open a new tab in chrome you just need to execute chrome.exe with your URL as the argument:

Process.Start(@"%AppData%\..\Local\Google\Chrome\Application\chrome.exe",               "http:\\www.YourUrl.com");