title: Launch a file with command line arguments without knowing location of exe?
body: <p>Here's the situation: I am trying to launch an application, but the location of the .exe isn't known to me.  Now, if the file extension is registered (in Windows), I can do something like:</p>
  
  <pre><code>Process.Start("Sample.xls");
  </code></pre>
  
  <p>However, I need to pass some command line arguments as well.  I couldn't get this to work</p>
  
  <pre><code>   Process p = new Process();
     p.StartInfo.FileName = "Sample.xls";
     p.StartInfo.Arguments = "/r";  // open in read-only mode
     p.Start();
  </code></pre>
  
  <p>Any suggestions on a mechanism to solve this?</p>
  
  <p><strong>Edit</strong> @ aku</p>
  
  <p>My StackOverflow search skills are weak; I did not find that post.  Though I generally dislike peering into the registry, that's a great solution.  Thanks!</p>