title: Open file location
body: <p>When searching a file in Windows Explorer and right-click a file from the search results; there is an option: "Open file location". I want to implement the same in my C# WinForm. I did this:</p>
  
  <pre><code>if (File.Exists(filePath)
  {
      openFileDialog1.InitialDirectory = new FileInfo(filePath).DirectoryName;
      openFileDialog1.ShowDialog();
  }
  </code></pre>
  
  <p>Is there any better way to do it?</p>