> Hi all,
>
[quoted text clipped - 26 lines]
>
> Thanks.
Check the Win32_NetworkConnection class, it has all properties you are
looking for.
using(ManagementClass netwConn = new
ManagementClass("Win32_NetworkConnection" ))
{
ManagementObjectCollection shares = netwConn.GetInstances();
foreach(ManagementObject share in shares )
Console.WriteLine("{0} - {1}",share["LocalName"],share["RemotePath"]);
}
Check the WMI docs for more details, and use wbemtest.exe to experiment with
WMI before using in your code..
Willy.
DBC User - 15 Oct 2007 19:36 GMT
On Oct 15, 11:47 am, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> > Hi all,
>
[quoted text clipped - 44 lines]
>
> - Show quoted text -
Thank you very much for the answer, it helps.