title: How to pass argument to cmd.exe in from python script?
body: <p>I want to be able to run cmd.exe from a Python script and a particular command with arguments but I can't seem to get it working.</p>
  
  <p>I have tried </p>
  
  <pre><code>cmdL = r"C:\WINDOWS\system32\cmd.exe"
  schTasks = "schtasks.exe"
  #run the schtasks.exe
  os.system(cmdL + schTasks)
  </code></pre>
  
  <p>but the dos window appears and then disappears quickly.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>