How to get the UNC share name of a given folder (if shared)?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: José Joye (jose.joye_at_KILLTHESPAMSbluewin.ch)
Date: 08/16/04


Date: Mon, 16 Aug 2004 14:20:02 +0200

Hello,

Can someone could help me with the following:

I have a directory (e.g.: C:\myTest) and I want to retrieve the UNC share
name that has been assigned to it (or null if no share is defined for this
particular directory).

My first guess was to look at the DirectoryInfo Class. However, I could not
find anything.

Any help welcome!
José