Enumerating network shares

You can use NetShareEnum win32 api. http://www.pinvoke.net/default.aspx/netapi32/netshareenum.html Or look at the following project which is .NET Wrapper over it. http://www.codeproject.com/KB/IP/networkshares.aspx

Access a Remote Directory from C#

Use this class to authenticate and than just use simple file operations: /// <summary> /// Represents a network connection along with authentication to a network share. /// </summary> public class NetworkConnection : IDisposable { #region Variables /// <summary> /// The full path of the directory. /// </summary> private readonly string _networkName; #endregion #region Constructors /// … Read more