using os module to copy files on windows

Christian Reyes christian at rocketnetwork.com
Tue Apr 10 15:35:39 EDT 2001


Hello,
I've been using the os.system() call to copy files using the dos cmd line in
my python scripts.
for instance.

os.system('xcopy d:\\folder\\* d:\\folder2\\')

this does the job fine, but i'd like to eradicate all dependencies on the
cmd line from my scripts.

Is there a python os method that is equivalent to this?

any help would be much appreciated,
thank you,
christian





More information about the Python-list mailing list