You can use the System.Management library (WMI).
ManagementClass objClass = new
ManagementClass("\\\\eurodevssq001\\root\\cimv2:Wi n32_Share");
foreach(ManagementObject objShare in objClass.GetInstances()) {
Console.WriteLine(string.Format("{0} -> {1}",
objShare.Properties["Name"].Value, objShare.Properties["Path"].Value));
}
Check the docs for the Win32_Share management class for other types of
information about the share.
Arild
"Scherbina Vladimir" <vl*********@ukr.net> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
is there any function to get the names of shared folders ?