I need to be able to identify from the full path of a network drive from it's local letter.
E.G I know G: is a network drive, but I need to know that which network server it actually refers to e.g
\\Server1\Network1
How can I find this out in code?
Printable View
I need to be able to identify from the full path of a network drive from it's local letter.
E.G I know G: is a network drive, but I need to know that which network server it actually refers to e.g
\\Server1\Network1
How can I find this out in code?
In VBScript (or VB if you have the vbscript.dll) this is a simple procedure.
Dim fso, d
Set fso = CreateObject("Scripting.FileSystemObject")
Set d = fso.GetAbsolutePathName("G:")
The Variable d should return the network path you are looking for.