我正在使用它来获取默认网络浏览器的路径和可执行文件:publicstaticstringDefaultWebBrowser{get{stringpath=@"\http\shell\open\command";using(RegistryKeyreg=Registry.ClassesRoot.OpenSubKey(path)){if(reg!=null){stringwebBrowserPath=reg.GetValue(String.Empty)asstring;if(!String.IsNullOrEmpty(webBrowserPath)){if(webBrowserPath.F