copy file over LAN

Teja tejovathi.p at
Thu Mar 27 06:48:29 CET 2008

On Mar 27, 8:34 am, Astan Chee <st... at> wrote:
> Hi,
> I have afileon another machine on the localnetwork(my machine and
> local machines are on windows) and I want tocopyit locally. Now the
> machine requires authentication and when I try to do a
> import shutil
> shutil.copy(r'\\remotemachine\c$\temp\filename',r'C:\folder\test.txt')
> and it gives me a IOError: [Errno 13] Permission denied: error, which I
> expect. How do I provide authentication tocopythisfile?
> Thanks for the help.
> Cheers
> Astan
> --
> "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two."
> Animal Logic
> Please think of the environment before printing this email.
> This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free.


Is the folder where the file is present i.e. "temp" in your case,
Can you share it and try it??

I  tried this way and it worked!

import shutil


Try this way and let me know

More information about the Python-list mailing list