title: How to execute cmd.exe with arguments in Python
body: <p>I was trying to run <code>cmd.exe</code> with argument <code>ls</code>.</p>
  
  <p>I used the below code</p>
  
  <pre><code>import subprocess
  subprocess.call(['C:\Windows\System32\cmd.exe', 'ls'])
  </code></pre>
  
  <p>After executing this <code>cmd.exe</code> is opening but not taking <code>ls</code> as input</p>