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

miCRoSCoPiC_eaRthLinG picture miCRoSCoPiC_eaRthLinG · Jun 10, 2011 · Viewed 98.1k times · Source

Is there a way I can launch a tab (not a new Window) in Google Chrome with a specific URL loaded into it from a custom app? My application is coded in C# (.NET 4 Full).

I'm performing some actions via SOAP from C# and once successfully completed, I want the user to be presented with the end results via the browser.

This whole setup is for our internal network and not for public consumption - hence, I can afford to target a specific browser only. I am targetting Chrome only, for various reasons.

Answer

Dylan Watson picture Dylan Watson · Mar 15, 2012

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.