For completeness' sake, this is the new script I came up with: import os
dirfrom = 'C:\\test' dirto = 'C:\\test1\\' makedir = 'mkdir "%s"' % dirto copy_command = 'copy "%s" "%s"' % (dirfrom, dirto) if os.system(copy_command) == 0: print "yay" else: if os.system(makedir) == 0: if os.system(copy_command) == 0: print 'yay!' else: print 'WTF mate?' Is there a more efficient way of doing this? -- http://mail.python.org/mailman/listinfo/python-list