Link to home
Start Free TrialLog in
Avatar of masvmasv
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
Avatar of jhance
jhance

There is no way since a "real" path to a UNC may not exist.
Avatar of jkr
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)
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

Avatar of masvmasv

ASKER

Thanks...

The NetShareGetInfo is my solution...

Thanks