title: How do I use C# to check if program associated with file extension is valid?
body: <p>I'm using the following method to open a file:</p>
  
  <pre><code>Process.Start();
  </code></pre>
  
  <p>This throws Win32Exception if a particular file with some extension is associated to a program in Windows that no longer exists.  Now I could just simply do</p>
  
  <pre><code> try{
        Process.start();
   } catch( Exception ex){
        // Error handling code
   }
  </code></pre>
  
  <p>however at the request of my employer I've been asked not to do this. Instead I would like to approach this by checking to see if the associated program/path_to_program exists, and if not pop a window telling the user to pick a program to run the file.</p>
  
  <p>Thanks</p>