title: How to create a exe launcher using python in windows
body: <p>i need to launch a exe using a python script but also I need to kill it using the same script</p>
  
  <p>A start idea is:</p>
  
  <pre><code>process = magicCommand( 'theExe.exe' ) #invoke exe
  
  kill = 'no'
  while kill == 'no':
      kill = raw_input()
  
  otherMagicCommand( process ) #kill
  </code></pre>
  
  <p>EDIT</p>
  
  <p>this works in windows for me</p>
  
  <pre><code>process = subprocess.Popen( 'theExe.exe' ) #invoke exe
  
  kill = 'no'
  while kill == 'no':
      kill = raw_input()
  
  process.kill() #kill
  </code></pre>