Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11191 > unrolled thread

Re: Directions on accessing shared folder in windows network

Started byTim Golden <mail@timgolden.me.uk>
First post2011-08-11 08:40 +0100
Last post2011-08-11 08:40 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Directions on accessing shared folder in windows network Tim Golden <mail@timgolden.me.uk> - 2011-08-11 08:40 +0100

#11191 — Re: Directions on accessing shared folder in windows network

FromTim Golden <mail@timgolden.me.uk>
Date2011-08-11 08:40 +0100
SubjectRe: Directions on accessing shared folder in windows network
Message-ID<mailman.2157.1313048455.1164.python-list@python.org>
On 10/08/2011 21:43, Christian Heimes wrote:
> Am 10.08.2011 21:52, schrieb Ameet Nanda:
>> 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
>
> The open() function wraps the fopen() function, which doesn't support
> UNC, just local paths. You have to mount the network share first (assign
> a drive letter).

Christian, with respect: what are you talking about?

<code>
print open (r"\\localhost\c$\python27\python.exe").read (100)

</code>

The OP's problem is that he's trying to call open () on the
share itself, not on a file within it.

TJG

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web