file backup in windows

Tim Golden Tim.Golden at viacom-outdoor.co.uk
Wed Nov 22 06:47:15 EST 2006


[... snip ...]

| ---------------------------------------------------
| how can i make the following code work, I have probelm with filepath
| declaration.
| ---------------------------------------------------
| import os, shutil
| filepath = ' C:\\Documents and Settings\\060577\\Local
| Settings\\Application Data\\Microsoft\\Outlook\\* '
| backup = ' D:\\temp\\outlook '
| os.system ("xcopy /s %s %s" % (filepath, backup))
| -----------------------------------------

... also, for various ways of copying files around
under Windows in Python, see:

http://tgolden.sc.sabren.com/python/win32_how_do_i/copy-a-file.html

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list