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

后端 未结 4 500
渐次进展
渐次进展 2020-12-08 13:33

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

4条回答
  •  没有蜡笔的小新
    2020-12-08 13:52

    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.

提交回复
热议问题