title: How to shell execute a file in C#?
body: <p>I tried using the Process class as always but that didn't work. All I am doing is trying to run a Python file like someone double clicked it.</p>
  
  <p>Is it possible?</p>
  
  <p>EDIT:</p>
  
  <p>Sample code:</p>
  
  <pre><code>string pythonScript = @"C:\callme.py";
  
  string workDir = System.IO.Path.GetDirectoryName ( pythonScript );
  
  Process proc = new Process ( );
  proc.StartInfo.WorkingDirectory = workDir;
  proc.StartInfo.UseShellExecute = true;
  proc.StartInfo.FileName = pythonScript;
  proc.StartInfo.Arguments = "1, 2, 3";
  </code></pre>
  
  <p>I don't get any error, but the script isn't run. When I run the script manually, I see the result.</p>