title: C# code not starting .exe getting error cannot find file name
body: <p>I really have no idea why this code isnt working. Everytime i get the error Cannot start process because a file name has not been provided. Even though i provided the path in which the EXE is located and verified it.</p>
  
  <pre><code>using System;
  using System.Diagnostics;
  using System.Diagnostics.Contracts;
  
  namespace ProcessExitSample
  {
      class testsandboxprogram
      {
          static void Main(string[] args)
          {
              Contract.Requires(args != null);
              try
              {
                  var firstProc = new Process();
                  Process.Start(@"PATH TO EXE I WANT TO LAUNCH");
                  firstProc.EnableRaisingEvents = true;
  
                  firstProc.Start();
  
                  firstProc.WaitForExit();
  
                  //so upon exit should run the second program here
                  Console.WriteLine("First process exited: " + firstProc.ExitCode);
  
                  var secondProc = new Process();
                  Process.Start(@"PATH TO PROGRAM I WANT TO LAUNCH");
                  secondProc.Start();
  
              }
              catch (Exception ex)
              {
                  Console.WriteLine("Something went wrong sorry :(: " + ex.Message);
                  return;
              }
          }
      }
  }
  </code></pre>