title: Xcopy with Python
body: <p>I'm trying to get xcopy working with python to copy files to a remote system. I am using a very simple test example:</p>
  
  <pre><code>import os
  
  src = "C:\&lt;Username&gt;\Desktop\test2.txt"
  dst = "C:\Users\&lt;Username&gt;"
  
  print os.system("xcopy %s %s" % (src, dst))
  </code></pre>
  
  <p>But for some reason when I run this I get:</p>
  
  <pre><code>Invalid number of parameters
  4
  </code></pre>
  
  <p>Running the xcopy directly from the command line works fine. Any ideas?</p>
  
  <p>Thanks</p>