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?
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.
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