Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个桌面搜索应用程序。我需要一种将网络浏览器目标设置为 Google Chrome 的方法。即,如果有人单击我的应用程序中的按钮,它将打开带有网站而不是 Internet Explorer 的 Chrome。
以 url 作为第一个 arg 运行 chrome exe
chrome.exe xkcd.com
所以像...
Process.Start("pathToChrome\\chrome.exe", "xkcd.com")