Hi all,
I'm looking for a function to convert an absolute path to UNC and UNC to an absolute path ( if possible ).
Example:
John types "X:\Folder\File.ext" on his computer.
A function converts it to "\\Server\Share\Folder\File.ext" and saves it in a central place.
Jane accesses the information on her workstation. She has "\\Server\Share" mapped to L:
A function converts it to "L:\Folder\File.ext".
( Obviously it's not that easy, things can fail, special considerations need to be taken into account, maybe drives aren't mapped that way at all etc )
I already got the "AbsoluteToUNC" conversion done. Works like a charm. However, I'm still looking for a function that can list all mapped drives and targets of that mappings for the local workstation.
Anyone got any ideas ? I already looked through all the Netx functions and examples on MSDN, but all of them only work the other way, listing shares of the local machine.