Re: copy file over LAN

2008-03-27 Thread Gabriel Genellina
En Thu, 27 Mar 2008 00:34:20 -0300, Astan Chee [EMAIL PROTECTED] escribió: I have a file on another machine on the local network (my machine and local machines are on windows) and I want to copy it locally. Now the machine requires authentication and when I try to do a import shutil

Re: copy file over LAN

2008-03-27 Thread Astan Chee
Well, the solution seems to be something like (windows only) import os import os.path import shutil import sys import win32wnet def wnet_connect(host, username, password): unc = ''.join(['', host]) try: win32wnet.WNetAddConnection2(0, None, unc, None, username, password)

Re: copy file over LAN

2008-03-27 Thread [EMAIL PROTECTED]
On Mar 27, 6:48 pm, Teja [EMAIL PROTECTED] wrote: On Mar 27, 8:34 am, Astan Chee [EMAIL PROTECTED] 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

copy file over LAN

2008-03-26 Thread Astan Chee
Hi, I have a file on another machine on the local network (my machine and local machines are on windows) and I want to copy it 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

Re: copy file over LAN

2008-03-26 Thread Teja
On Mar 27, 8:34 am, Astan Chee [EMAIL PROTECTED] 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