title: C# Process.Start() Continue On If File Not Found?
body: <p>I'm looking to use Process.Start() to launch an executable, but I want to continue program execution regardless of whether the executable succeeds or fails, or whether Process.Start() itself throws an exception.</p>
  
  <p>I have this:</p>
  
  <pre><code>        myProcess.StartInfo.UseShellExecute = false;
          // You can start any process, HelloWorld is a do-nothing example.
          myProcess.StartInfo.FileName = "C:\\HelloWorld.exe";
          myProcess.StartInfo.CreateNoWindow = true;
          myProcess.Start();
  </code></pre>
  
  <p>I know you can add this into try catch </p>
  
  <pre><code>          try
          {
              myProcess.StartInfo.UseShellExecute = false;
              // You can start any process, HelloWorld is a do-nothing example.
              myProcess.StartInfo.FileName = "C:\\HelloWorld.exe";
              myProcess.StartInfo.CreateNoWindow = true;
              myProcess.Start();
          }
          catch (Exception e)
          {
              Console.WriteLine(e.Message);
          }
  </code></pre>
  
  <p>Try catch version will not fail if file not found? How to go with other exception like InvalidOperationException Win32Exception ObjectDisposedException</p>
  
  <p>The goal is just to continue with the code if this fail... </p>
  
  <p>Thanks a lot!</p>