Problem while copying a file from a remote filer

venutaurus539 at venutaurus539 at
Mon Mar 16 06:24:59 CET 2009

Hi all,
      I have to write an application which does a move and copy of a
file from a remote machine to the local machine. I tried something

file = ur"\\\\venuwin2008\\C\\4Folders\\Folder02\\Folder002\
dest = "C:\\test"

But it is throwing an error:

Traceback (most recent call last):
  File "E:\venu\Testing Team\", line 22, in <module>
  File "C:\Python26\lib\", line 88, in copy
    copyfile(src, dst)
  File "C:\Python26\lib\", line 52, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 22] invalid mode ('rb') or filename: u'\\\\\\\

Can some one please help me in this regard.

Thank you
Venu madhav

More information about the Python-list mailing list