473,804 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ 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\si te\ directly?

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

If I go to start -run, and type in "\\SharPointSer ver\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\\folde r\\*")
[]
Thanks guys!
Blaine

Aug 16 '07 #1
4 7449
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\si te\ directly?

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

If I go to start -run, and type in "\\SharPointSer ver\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\si te\ directly?
So my question is this - How do I access that network share?
If I go to start -run, and type in "\\SharPointSer ver\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\\folde r\\*")
[]

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\si te\ directly?
So my question is this - How do I access that network share?
If I go to start -run, and type in "\\SharPointSer ver\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"\\l ocalhost\c$\pyt hon25\libs\*")
['\\\\localhost\ \c$\\python25\\ libs\\bz2.lib',
'\\\\localhost\ \c$\\python25\\ libs\\libpython 25.a',
'\\\\localhost\ \c$\\python25\\ libs\\pyexpat.l ib',
'\\\\localhost\ \c$\\python25\\ libs\\python25. lib',
'\\\\localhost\ \c$\\python25\\ libs\\select.li b',
'\\\\localhost\ \c$\\python25\\ libs\\unicodeda ta.lib',
'\\\\localhost\ \c$\\python25\\ libs\\winsound. lib',
'\\\\localhost\ \c$\\python25\\ libs\\_bsddb.li b',
'\\\\localhost\ \c$\\python25\\ libs\\_ctypes.l ib',
'\\\\localhost\ \c$\\python25\\ libs\\_ctypes_t est.lib',
'\\\\localhost\ \c$\\python25\\ libs\\_elementt ree.lib',
'\\\\localhost\ \c$\\python25\\ libs\\_hashlib. lib',
'\\\\localhost\ \c$\\python25\\ libs\\_msi.lib' ,
'\\\\localhost\ \c$\\python25\\ libs\\_socket.l ib',
'\\\\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\si te\ directly?
So my question is this - How do I access that network share?
If I go to start -run, and type in "\\SharPointSer ver\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\\folde r\\*")
[]
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"\\l ocalhost\c$\pyt hon25\libs\*")
['\\\\localhost\ \c$\\python25\\ libs\\bz2.lib',
'\\\\localhost\ \c$\\python25\\ libs\\libpython 25.a',
'\\\\localhost\ \c$\\python25\\ libs\\pyexpat.l ib',
'\\\\localhost\ \c$\\python25\\ libs\\python25. lib',
'\\\\localhost\ \c$\\python25\\ libs\\select.li b',
'\\\\localhost\ \c$\\python25\\ libs\\unicodeda ta.lib',
'\\\\localhost\ \c$\\python25\\ libs\\winsound. lib',
'\\\\localhost\ \c$\\python25\\ libs\\_bsddb.li b',
'\\\\localhost\ \c$\\python25\\ libs\\_ctypes.l ib',
'\\\\localhost\ \c$\\python25\\ libs\\_ctypes_t est.lib',
'\\\\localhost\ \c$\\python25\\ libs\\_elementt ree.lib',
'\\\\localhost\ \c$\\python25\\ libs\\_hashlib. lib',
'\\\\localhost\ \c$\\python25\\ libs\\_msi.lib' ,
'\\\\localhost\ \c$\\python25\\ libs\\_socket.l ib',
'\\\\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
2914
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 same NT domain, each one has its own web server. The web server is always IIS 5.0.
36
16454
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 path with a FSO: Set myFile = Server.CreateObject("Scripting.FileSystemObject").GetFile("\\server2\myshare\myfile.txt") this fails with an Permission Denied. here's the deal:
5
21573
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 folder on mapped network drive (eg. N:\Storage that corresponds to \\FS1NS\SharedDir\), I get an error as "Could not find part of path N:\".
3
13362
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 "NetworkService" don't work. i.e. it can't access the shared drive. But in "User" it can. But I don't want it in user mode, if possible. I would rather it be a service. Is there any way to do it?
0
1468
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 windows media player didn't recognize the connection, and gives the following error: 0xC00D1196, Condition : 0X00000000 Windows Media Player cannot copy or play the file because the server
0
2269
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 updating the code-behind dll) accessing any aspx page in the application causes the application to run for the first time. Some of the initialization involves reading and writing some text and xml files using simple streamreader and streamwriter...
0
1840
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 Servers
4
3284
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 and not used to provide domain control or name services. The two environments are on different networks with no trust relationship between them. In both environments the web server is set up to disallow anonymous access and to use integrated...
0
1085
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 have no permission to access the network, however I'm running it as a local user who has full access to the share. (I can verify this by putting the same path that's in the error in Explorer and it works.) What am I missing here? Please also note...
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10603
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
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 we have to send another system
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.