469,626 Members | 1,760 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

HELP - Listing Shared Folders

I'm developing an ASP.NET 2.0 (C#) application in which I need to display
the available shared folders on the server. The shared folder paths need to
be in UNC format (i.e., \\servername\share) and need to be clickable links.
Upon clicking the link a textbox needs to be populated with the full UNC
path.

I don't need to read, write, edit, delete, etc. files or folders, I simply
need to list all the shared folders and get its full UNC path.

I know the System.IO namespace has some methods and/or properties to get
directories, but I don't know how to limit this to only the available shared
folders on the server.

Anyone?

Thanks in advance.
Jan 13 '06 #1
1 1155
Hi,
You can find C# implementation of this problem here:
http://www.codeproject.com/csharp/networkshares.asp

Hope this helps
--
Milosz Skalecki
MCP, MCAD
"nuggies" wrote:
I'm developing an ASP.NET 2.0 (C#) application in which I need to display
the available shared folders on the server. The shared folder paths need to
be in UNC format (i.e., \\servername\share) and need to be clickable links.
Upon clicking the link a textbox needs to be populated with the full UNC
path.

I don't need to read, write, edit, delete, etc. files or folders, I simply
need to list all the shared folders and get its full UNC path.

I know the System.IO namespace has some methods and/or properties to get
directories, but I don't know how to limit this to only the available shared
folders on the server.

Anyone?

Thanks in advance.

Jan 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Glenn Venzke | last post: by
5 posts views Thread by Dan Lorenz | last post: by
9 posts views Thread by The Grim Reaper | last post: by
2 posts views Thread by Daniel Knöpfel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.