masvmasv
asked on
Get a real path from a network shared
Hi !
I need a source code for get the real path from a network shared name... like:
GetRealPath( "\\\\computer\\shared" )
-> return "c:\windows\test"
Thanks
I need a source code for get the real path from a network shared name... like:
GetRealPath( "\\\\computer\\shared" )
-> return "c:\windows\test"
Thanks
There is no way since a "real" path to a UNC may not exist.
Tend to object, jhance :o)
'NetShareGetInfo()' will provide the local name of a share - I wrote that one a while ago:
(EE's choking on that, so I'll have to split the post)
'NetShareGetInfo()' will provide the local name of a share - I wrote that one a while ago:
(EE's choking on that, so I'll have to split the post)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Uh-oh! The dreaded "no text" bug has reappeared!!! Arghhhh.
Yes, you are right. I misunderstood the question.
I thought he was asking for the LOCAL PATH on the workstation where the app was running. That would not necessarily be there if the remote path was not mapped to a local drive letter. But after reading the question I see that your interpretation is probably the intent of the question.
I thought he was asking for the LOCAL PATH on the workstation where the app was running. That would not necessarily be there if the remote path was not mapped to a local drive letter. But after reading the question I see that your interpretation is probably the intent of the question.
ASKER
Thanks...
The NetShareGetInfo is my solution...
Thanks
The NetShareGetInfo is my solution...
Thanks