Copying files to file server

Mark Hammond mhammond at skippinet.com.au
Thu Dec 9 17:24:01 EST 1999


You can specify the file name with the UNC syntax:

f = open(r"\\server\sharename\dir\filename.txt")

Why didnt win32wnet work?  What did you try and do?  Are you sure you have
access to the share name - eg, can you type "dir \\server\sharename\dir"
from a command prompt?

Mark.

Tomaz Ficko wrote in message ...
>I want to open a connection to a file server (Windows NT) from Python
script
>and copy a file to it.
>I'm using Windows 95 and Python 1.5.2. I tried with win32wnet module but it
>didn't work. Any suggestions?
>
>
>
>Tom
>
>





More information about the Python-list mailing list