472,127 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

Accessing Windows Network Share?

I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going to http://sharepoint/site,
why not just access \\sharepoint\site\ directly?

So my question is this - How do I access that network share?

If I go to start -run, and type in "\\SharPointServer\Site\Folder",
windows explorer will pop up with it. I suppose I could have a little
batch script that python runs to map the drive to a local letter, like
J:, but this does not seem necessary.

Suggestions?

This does not work, for obvious reasons:
>>import glob.glob
glob.glob("\\\\server\\folder\\*")
[]
Thanks guys!
Blaine

Aug 16 '07 #1
4 7244
On 8/16/07, frikk <fr*****@gmail.comwrote:
I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going to http://sharepoint/site,
why not just access \\sharepoint\site\ directly?

So my question is this - How do I access that network share?

If I go to start -run, and type in "\\SharPointServer\Site\Folder",
windows explorer will pop up with it. I suppose I could have a little
batch script that python runs to map the drive to a local letter, like
J:, but this does not seem necessary.

Suggestions?

This does not work, for obvious reasons:
>import glob.glob
glob.glob("\\\\server\\folder\\*")
[]
I don't see whats "obvious" about this. Access to windows shares is
handled by Windows in a VFS layer, and glob and all other Python file
access works fine over them for me.
Aug 16 '07 #2
On Aug 16, 2:43 pm, "Chris Mellon" <arka...@gmail.comwrote:
On 8/16/07, frikk <frik...@gmail.comwrote:


I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going tohttp://sharepoint/site,
why not just access \\sharepoint\site\ directly?
So my question is this - How do I access that network share?
If I go to start -run, and type in "\\SharPointServer\Site\Folder",
windows explorer will pop up with it. I suppose I could have a little
batch script that python runs to map the drive to a local letter, like
J:, but this does not seem necessary.
Suggestions?
This does not work, for obvious reasons:
>>import glob.glob
>>glob.glob("\\\\server\\folder\\*")
[]

I don't see whats "obvious" about this. Access to windows shares is
handled by Windows in a VFS layer, and glob and all other Python file
access works fine over them for me.- Hide quoted text -

- Show quoted text -
Haha ok, you're right its not obvious. Sorry for that.

But that code does not work - should it?

Do you have an example of glob working over a file share, not a
network mapped drive?

Aug 16 '07 #3
On 8/16/07, frikk <fr*****@gmail.comwrote:
On Aug 16, 2:43 pm, "Chris Mellon" <arka...@gmail.comwrote:
On 8/16/07, frikk <frik...@gmail.comwrote:


I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going tohttp://sharepoint/site,
why not just access \\sharepoint\site\ directly?
So my question is this - How do I access that network share?
If I go to start -run, and type in "\\SharPointServer\Site\Folder",
windows explorer will pop up with it. I suppose I could have a little
batch script that python runs to map the drive to a local letter, like
J:, but this does not seem necessary.
Suggestions?
This does not work, for obvious reasons:
>import glob.glob
>glob.glob("\\\\server\\folder\\*")
[]
I don't see whats "obvious" about this. Access to windows shares is
handled by Windows in a VFS layer, and glob and all other Python file
access works fine over them for me.- Hide quoted text -

- Show quoted text -

Haha ok, you're right its not obvious. Sorry for that.

But that code does not work - should it?

Do you have an example of glob working over a file share, not a
network mapped drive?
import glob
glob.glob(r"\\localhost\c$\python25\libs\*")
['\\\\localhost\\c$\\python25\\libs\\bz2.lib',
'\\\\localhost\\c$\\python25\\libs\\libpython25.a' ,
'\\\\localhost\\c$\\python25\\libs\\pyexpat.lib',
'\\\\localhost\\c$\\python25\\libs\\python25.lib',
'\\\\localhost\\c$\\python25\\libs\\select.lib',
'\\\\localhost\\c$\\python25\\libs\\unicodedata.li b',
'\\\\localhost\\c$\\python25\\libs\\winsound.lib',
'\\\\localhost\\c$\\python25\\libs\\_bsddb.lib',
'\\\\localhost\\c$\\python25\\libs\\_ctypes.lib',
'\\\\localhost\\c$\\python25\\libs\\_ctypes_test.l ib',
'\\\\localhost\\c$\\python25\\libs\\_elementtree.l ib',
'\\\\localhost\\c$\\python25\\libs\\_hashlib.lib',
'\\\\localhost\\c$\\python25\\libs\\_msi.lib',
'\\\\localhost\\c$\\python25\\libs\\_socket.lib',
'\\\\localhost\\c$\\python25\\libs\\_sqlite3.lib',
'\\\\localhost\\c$\\python25\\libs\\_ssl.lib',
'\\\\localhost\\c$\\python25\\libs\\_testcapi.lib' ,
'\\\\localhost\\c$\\python25\\libs\\_tkinter.lib']

I do it all the time. I'd double check your slash escaping (consider
using r'') and pathnames.
Aug 16 '07 #4
On Aug 16, 3:03 pm, "Chris Mellon" <arka...@gmail.comwrote:
On 8/16/07, frikk <frik...@gmail.comwrote:


On Aug 16, 2:43 pm, "Chris Mellon" <arka...@gmail.comwrote:
On 8/16/07, frikk <frik...@gmail.comwrote:
I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going tohttp://sharepoint/site,
why not just access \\sharepoint\site\ directly?
So my question is this - How do I access that network share?
If I go to start -run, and type in "\\SharPointServer\Site\Folder",
windows explorer will pop up with it. I suppose I could have a little
batch script that python runs to map the drive to a local letter, like
J:, but this does not seem necessary.
Suggestions?
This does not work, for obvious reasons:
>>import glob.glob
>>glob.glob("\\\\server\\folder\\*")
[]
I don't see whats "obvious" about this. Access to windows shares is
handled by Windows in a VFS layer, and glob and all other Python file
access works fine over them for me.- Hide quoted text -
- Show quoted text -
Haha ok, you're right its not obvious. Sorry for that.
But that code does not work - should it?
Do you have an example of glob working over a file share, not a
network mapped drive?

import glob
glob.glob(r"\\localhost\c$\python25\libs\*")
['\\\\localhost\\c$\\python25\\libs\\bz2.lib',
'\\\\localhost\\c$\\python25\\libs\\libpython25.a' ,
'\\\\localhost\\c$\\python25\\libs\\pyexpat.lib',
'\\\\localhost\\c$\\python25\\libs\\python25.lib',
'\\\\localhost\\c$\\python25\\libs\\select.lib',
'\\\\localhost\\c$\\python25\\libs\\unicodedata.li b',
'\\\\localhost\\c$\\python25\\libs\\winsound.lib',
'\\\\localhost\\c$\\python25\\libs\\_bsddb.lib',
'\\\\localhost\\c$\\python25\\libs\\_ctypes.lib',
'\\\\localhost\\c$\\python25\\libs\\_ctypes_test.l ib',
'\\\\localhost\\c$\\python25\\libs\\_elementtree.l ib',
'\\\\localhost\\c$\\python25\\libs\\_hashlib.lib',
'\\\\localhost\\c$\\python25\\libs\\_msi.lib',
'\\\\localhost\\c$\\python25\\libs\\_socket.lib',
'\\\\localhost\\c$\\python25\\libs\\_sqlite3.lib',
'\\\\localhost\\c$\\python25\\libs\\_ssl.lib',
'\\\\localhost\\c$\\python25\\libs\\_testcapi.lib' ,
'\\\\localhost\\c$\\python25\\libs\\_tkinter.lib']

I do it all the time. I'd double check your slash escaping (consider
using r'') and pathnames.- Hide quoted text -

- Show quoted text -
I must have been doing it wrong. Thanks! That works great!

Aug 16 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by Lamberti Fabrizio | last post: by
3 posts views Thread by Bonj | last post: by
reply views Thread by John Fleming | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.