title: How do I run a Python script from command line in a WPF application
body: <p>I am trying to run a Python script from cmd line in a WPF application. I have this code which opens cmd line to the correct directory:</p>
  
  <pre><code>string cmd = @"webplus_builder.py";
               Process p = new Process();
               p.StartInfo.FileName = "cmd.exe";
               p.StartInfo.WorkingDirectory = @"C:\Temp\WebBuilder";
               p.StartInfo.Arguments = string.Format("{0} {1} {2}", cmd, "WAF", _CountryCode);
  
               p.StartInfo.UseShellExecute = false;
               p.Start();
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/aFPCn.png" alt="enter image description here"></p>
  
  <p>I now want to run <code>webplus_builder.py</code> from that directory like so:</p>
  
  <p><img src="https://i.stack.imgur.com/9TsoL.png" alt="enter image description here"></p>
  
  <p>How do I achieve this? Is it a case of just adding arguments to my <code>Process</code> as I've attempted to do?</p>