473,467 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 7403
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Lamberti Fabrizio | last post by:
Hi all, I've to access to a network file from an asp pages. I've red a lot of things on old posts and on Microsoft article but I can't still solve my problem. I've got two server inside the...
36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
5
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
3
by: Bonj | last post by:
I need to write a windows service, and the only way it can access a shared drive on a file server on the network is if the installer is put in "User" mode - "LocalService", "LocalSystem" and...
0
by: icho | last post by:
Hi, I got a windows media player in an aspx page, which accesses files from a network share. I've maintain a connection using WNetAddConnection2 method of the windows API, but somehow the...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
0
by: John Fleming | last post by:
Hello, I am building a web application with the following components: 2 Web Servers - Windows Server 2003 - IIS 6 - .Net Framework version 2.0 - Reside in Domain A 2 Clustered Database...
4
by: Geoff Lane | last post by:
Development environment: Windows 2003 Server running IIS6 and the same server running as a domain controller, DNS and DHCP servers. Production environment: Windows 2000 Server SP4 running IIS5...
0
by: skultetc | last post by:
I am attempting to access a network share from a windows service, however I keep getting the "Could not find part of the path: '\\unc \share'" error. I know if its run under LocalService it would...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.