title: How do I find a file that may not be fully-qualified by using the environment path?
body: <p>I have an executable name, like "cmd.exe" and need to resolve it's fully-qualified path.  I know the exe appears in one of the directories listed in the PATH environment variable.  Is there a way to resolve the full path without parsing and testing each directory in the PATH variable?  basically I don't want to do this:</p>
  
  <pre><code>foreach (string entry in Environment.GetEnvironmentVariable("PATH").Split(';'))
      ...
  </code></pre>
  
  <p>There has to be a better way, right?</p>