[Tutor] Convert my .bat and .vbs to .py
rob.andrews at gmail.com
Thu Feb 15 18:38:14 CET 2007
If you import os, os.path, and shutil (only the ones you need,
although I wind up using all three for this sort of task), you can do
all that you have in mind and more.
os.path opens up some pretty painless methods for doing things like
testing to make sure the file exists in a given location before
copying it (or deleting it), which can save a good bit of heartache.
shutil can be used for not only copying files, but even copying entire
More information about the Tutor