Quote Originally Posted by 2kaud View Post
I realise this thread is resolved, but after some investigation and for info, there is an easier method of obtaining the UNC from a network mapped drive letter.

The mapped drive letters are stored as keys (without the : ) under:

HKEY_CURRENT_USER/Network

Each mapped drive letter is then a separate key under this (without the : ). The value of RemotePath gives the UNC of the network mapped drive letter.

This method is obviously easier (and quicker!) than executing NET USE and parsing the output someway.
Wow, nice! What's your VB.net code for reading the registry key?