Suppose I have this folder:
R:\Extensions
But the network share of this folder is
\\computer\somename$\Extensions
How can I get the second value from the first?
This is a discussion on Mapping from mapped drive to real share within the Windows Programming forums, part of the Platform Specific Boards category; Suppose I have this folder: R:\Extensions But the network share of this folder is \computer\somename$\Extensions How can I get the ...
Suppose I have this folder:
R:\Extensions
But the network share of this folder is
\\computer\somename$\Extensions
How can I get the second value from the first?
You could try looking in the registry, under
HKEY_CURRENT_USER\Network
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
Nothing in HKCR, HKLM and HKCU.
Code:TCHAR szUnc[MAX_PATH]; if (NOERROR == WNetGetConnection(TEXT("R:"), szUnc, MAX_PATH)) { printf("Unc path of 'R:' is '%s'", szUnc); } else { printf("No luck!"); }
WNetGetConnection
That's the one I was looking for.
Thanks