how to get Network mapped drive VolumeLabel in C#?
<p>So for example, if i have drive Z:NetworkDrive, which mapped to shared folder on another server, and i want to return volumelabel "NetworkDrive". Next code seems to work:</p>

<pre><code> foreach (DriveInfo drive in drives)
            {
                if (drive.DriveType == DriveType.Network)
                    mappedDrivesNames.Add(drive.VolumeLabel);
            }
</code></pre>

<p>But it return the name of the first shared folder from the list on server. Any ideas, why this happened?</p>
