How to open "file://D:/help.html#selclass" with default browser in C# [duplicate]
Possible Duplicate:
How to open in default browser in C#
How to open "file://D:/help.html#selclass" with default browser in C#, is there any example?
Thanks Dma
Process.Start("file://D:/help.html#selclass");
var p = Process.Start(@"D:\help.html");
while (!p.HasExited) Thread.Sleep(10);
// carry on
You could:
- Create a temporary
.URLfile (see here for instance) that features#selclassin the URL. - Open the
.URLusingProcess.Start(...). - Delete the temporary
.URLfile.
I got default browser firstly through register table; and then call
Process.Start(browser, url);
It works
加载中,请稍侯......
精彩评论