title: How to start a batch file from within a python script and detach from it
body: <p>I have a python script that needs to start a <code>.bat</code> file. The <code>.bat</code> file runs indefinitely, and, ideally, never returns. </p>
  
  <p>There's no problem running a foreign executable or <code>.bat</code> from within a python script, but all the implementations I've found run it as a child and wait for it to return. </p>
  
  <p>Can I run an external script and detach from it, allowing it to run merrily, and have the python script continue to run? </p>
  
  <p>*<em>Edit: *</em> using <code>Popen</code> runs the batch file in the same command prompt window - as the batch file never returns, the python app us unable to continue running. Is there a way to run a batch file in a new command prompt window?</p>