473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Listing shares from My Network

!NoItAll
297 100+
I have scoured Google to find some examples - but they are either completely cryptic (I'm not afraid of Windows APIs either) or don't seem to work.
I want to build a list of available shares from my network. I will filter them before I present them to the user. Any clues where I can begin?

It might work if there was a simple way to get the network folder so I could enumerate them like regular folders...
Jul 27 '09 #1
3 3307
tlhintoq
3,525 Expert 2GB
I want to build a list of available shares from my network.
How do you define "available"? Until you try to log on you don't know if you have permissions for a share. So do you mean everything your computer can see on the network?
Jul 27 '09 #2
!NoItAll
297 100+
Yup - I just need to enumerate all of the currently available shares from My Network Neighborhood. If not currently logged on then there would be none.

Des
Jul 28 '09 #3
tlhintoq
3,525 Expert 2GB
Hitting google with the terms "C# Enumerate shares" got me a few good hits including:

http://bytes.com/groups/net-c/224901...d-folders-host

http://www.codeproject.com/KB/IP/networkshares.aspx
Jul 28 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: I.V. Aprameya Rao | last post by:
hi does anybody know how to access samba/windows shares on a network? is there any module that does this? i am running linux and i thought of using the mount command to mount that remote...
1
by: Doran_Dermot | last post by:
Hi All, I'm currently using "os.listdir" to obtain the contents of some slow Windows shares. I think I've seen another way of doing this using the win32 library but I can't find the example...
5
by: Michael C | last post by:
....on a remote machine? Thanks, Michael C.
2
by: Bas Hamer | last post by:
ok, so I kow that the local system accoutn can't get to a network share, and if you want to do that and not lose any of your other priveliges you need to run under a user name and password that is...
3
by: diephouse | last post by:
I seem to be having a problem accessing networks shares. For example, I try the following code: File.Exists(@"\\SERVER\share"); always returns false! Or even if I map the drive ...
6
by: JR | last post by:
My IIS Web site has a virtual directory called content mapped to a network share. If the home directory of the Web site is c:\inetpub\wwwroot and the virtual directory maps to the network share...
5
by: Josh Rolfe | last post by:
I have a page in classic asp that accces a network drive, The code is as follows: <% dim fso dim objFolder set fso=server.createObject("Scripting.FileSystemObject") set...
1
by: Glenn Leifheit | last post by:
Does anyone have any sample code on enumerating network shares with vb.net. I here you need to use wither an API or WMI, or are there other recomendations. Thanks Glenn
2
by: Michael | last post by:
We have an ASP.NET 2.0 web application running on a Windows 2003 domain controller. Part of that application needs to read and write files from and to a network share ( living on a MAC Xserveraid)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.