I am trying to copy some_file to another directory (say c:).
Here is my code:
import os
filetest = 'c:\\Documents and Settings\\secret\\Desktop\\testToCopy.txt'
tempdir = 'c:\\'
os.system('copy %s %s' % (filetest, tempdir))
But for some strange reason I always get this answer in response:
The system cannot find the file specified.
oscall and usingshutil.copy(src, dst)instead. You'll need aimport shutil. Doc link