C#中调用默认浏览器打开URL
using System.Text.RegularExpressions;
using Microsoft.Win32;
/*注册表找到默认浏览器的位置*/
RegistryKey key = Registry.ClassesRoot.OpenSubKey(@"http\shell\open\command\");
string s = key.GetValue("").ToString();
Regex reg = new Regex("\"([^\"]+)\"");
MatchCollection matchs = reg.Matches(s);
string filename="";
if (matchs.Count > 0)
{
filename = matchs[0].Groups[1].Value;
System.Diagnostics.Process.Start(filename, "http://www.piikee.net"); //浏览器,要打开的URL
}