title: Open a html file using default web browser
body: <p>I'm using this to get the path and executable of default web browser:</p>
  
  <pre><code>public static string DefaultWebBrowser
          {
              get
              {
  
                  string path = @"\http\shell\open\command";
  
                  using (RegistryKey reg = Registry.ClassesRoot.OpenSubKey(path))
                  {
                      if (reg != null)
                      {
                          string webBrowserPath = reg.GetValue(String.Empty) as string;
  
                          if (!String.IsNullOrEmpty(webBrowserPath))
                          {
                              if (webBrowserPath.First() == '"')
                              {
                                  return webBrowserPath.Split('"')[1];
                              }
  
                              return webBrowserPath.Split(' ')[0];
                          }
                      }
  
                      return null;
                  }
              }
          }
  </code></pre>
  
  <p>And:</p>
  
  <pre><code> protected static bool Run(string FileName, string Args)
          {
              try
              {
                  Process proc = new Process();
  
                  processInfo.FileName = FileName;
                   proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  
                  if(Args != null) proc.StartInfo.Arguments = Args;
  
                  proc.Start();
  
                  return true;
              }
              catch (Exception) { }
  
              return false;
          }
  </code></pre>
  
  <p>Then I call the web browser: <code>Run(DefaultWebBrowser, "foo.html")</code></p>
  
  <p>The question is: the above function is calling Firefox and IE (the two web browsers installed on my pc) instead of Internet Explorer, the default web browser. I have no idea how to fix this.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have downloaded and installed the Google Chrome, set it as default web browser, but oddly the above error don't happens with it.</p>