Jeez! I'm retarded. It works like a charm now. Thanks for that Rob
Mark Rob Andrews wrote the following on 2/15/2007 2:29 PM: > Ahh, yes. Your main trouble seems to be the use of \ instead of / in > 'C:\testing_it.txt' > > Windows uses \, whereas python uses /. So you can replace 'c:\....' > with your choice of the following: > > 'c:/....' (replacing \ with /) > r'c:\....' (the 'r' before the string tells python it's a raw string) > 'c:\\....' (the first \ telling python to take the second \ at face value) > > -Rob A. > > On 2/15/07, Mark Bystry <[EMAIL PROTECTED]> wrote: >> Well, immediately I am having problems. Be patient with me. >> >> This what I have... >> >> copy_file.py >> ############################################ >> >> import os >> import shutil as sh >> >> sh.copy('C:\testing_it.txt', 'D:\') >> raw_input("Done!") >> >> ############################################ > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor