title: Run python script in VB.net on button click
body: <p>I want to run a Python script in cmd when a button is clicked in VB.Net.
  Do you need to call the Python script in a batch file? Or can you do it directly in VB?</p>
  
  <p>I tried this</p>
  
  <pre><code>Dim ps As New ProcessStartInfo("cmd.exe")
      ps.Arguments = "C:\yourbatfile.bat"
      Process.Start(ps)
  </code></pre>
  
  <p>But that only opens the cmd window and doesn't execute the bat file.</p>