On Feb 9, 6:08 pm, "wreed" <whr...@gmail.comwrote:
How does this change it to a UNC path, all I see is once I browse the
Z:\whatever not the \\servername\blah.....
Am I missing something?
Your users are selecting a mapped drive to get to the share?
Well, no wonder it doesn't work. I thought your problem
was how to get the path instead of the file itself, not how
to translate a local mapped-drive path into a UNC path
Solutions... 1) Get them to type the UNC path instead. OK,
it sounds flippant, but moving over to using, say, DFS to
manage your shared storage locations is hugely, hugely better
than using mapped drives.
2) on the server, get the mapped drive path, and use WMI
to query the client machine for a list of mapped drives,
lookup z: and substitute the UNC path. This will work if
the server-side code has enough privileges to do the query
and the client computer isn't so busy that it takes ages
to reply. You won't be able to do this client-side.