Process.Start(url) broken on Windows 8/Chrome - are there alternatives?

后端 未结 5 1668
野的像风
野的像风 2020-12-09 16:21

To open a URL from a .NET application, many sites (including on StackOverflow) cite this example:

Process.Start(\"http://www.google.com/\");
<
5条回答
  •  温柔的废话
    2020-12-09 16:31

    You may try to specify the Process filename "explorer.exe" explicitly, like suggested in the following thread:

    http://social.msdn.microsoft.com/Forums/nl-BE/toolsforwinapps/thread/e051a102-469e-4ede-882c-c2c89377652a

    var startInfo = new ProcessStartInfo("explorer.exe", url);
    Process.Start(startInfo);
    

提交回复
热议问题