Directions on accessing shared folder in windows network

Ameet Nanda ameet.nanda at gmail.com
Wed Aug 10 15:52:17 EDT 2011


Hi,

Can anyone point me to a way to access windows shared folders from the
network using a python script. I tried accessing using open, which is
mentioned to work perfectly on the web, but it gives me following errors

>>>open(NW_PATH)

it gives me a permission denied error as follows:

>>> open("\\\\ameetn\\DropBox\\")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '\\\\ameetn\\'

>>> open("\\\\ameetn\\DropBox")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 13] Permission denied: '\\\\ameetn\\DropBox'

I am running Python 2.6 on Windows 7 platform.

Thanks in advance,
Ameet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110810/171cdf3f/attachment.html>


More information about the Python-list mailing list