Example Code

Resolve UNC Path from Mapped Drive

Code and Documents

Attachment

Using .NET it is possible to work backwards from a mapped drive to obtain the full UNC path to a network shared directory. This is useful when there is a network interruption and Windows hasn't refreshed its connection list. The VI currently only returns mapped drive information; however, by expanding the functionaltiy of the case structure within the code, it is possible to get detailed information about all drives currently attached to the machine.

Chris
Practical Physics, LLC
www.practicalphysicsllc.com

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors