|
-
Aug 19th, 2019, 03:14 PM
#24
Thread Starter
Addicted Member
Re: [RESOLVED] Get UNC from network mapped drive letter
 Originally Posted by 2kaud
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|