02-15-2012 08:46 AM
Is there a way to output the full server name for a mapped network drive?
i.e. go from the mapped drive letter R:\ and have it output the full path \\Mapped_Drive1
Thank you in advance...
Solved! Go to Solution.
02-15-2012 08:57 AM
There is no direct way of doing that. You can, however, do it, using a Windows API call to the WNetGetConnection function. See attached example. The buffer for the UNC path was arbitrarily set to be 100 characters.
02-15-2012 08:59 AM
Exactly what I was looking for, thanks again!
02-15-2012 10:42 AM
I attached the final VI in case it helps anyone.
06-26-2013 09:11 AM
Works great, thank you!