title: How to run batch file and leave it open to continue running (2.7)
body: <p>My current code for opening up a batch file is as follows:</p>
  
  <pre><code>from subprocess import Popen
  Popen("C:/Users/Josh/Desktop/cgminer-3.7.2-windows/mining.bat")
  </code></pre>
  
  <p>The only problem is that 'mining.bat' does not have a specified end, and will run for as long as possible. When I run the code, the batch file is opened, but it then closes after a few seconds. How can I get it to open the batch file, and then leave it alone and let it keep running?</p>