Hi Hector
>When I browse for the folder, my NAS appears in the category "Shared" with the correct name. There's no place where Finder doesn't display the real volume >name, but wxDirDialog::GetPath() always replaces the real name with just "Volume".
>It's a real problem for me as I have to send a command to another computer which needs the real volume name to find it.
As long as /Volume/.. is followed by the share name then this is correct native behaviour, the dir dialog only shows you a nicer user friendly view, if you open a terminal window and drag the volume onto it you should find that the posix name of the volume starts with /Volumes/... that were all the shares are mounted to. This is different from the old HFS System, where the path started with the volume name directly.
HTH
Stefan
Hi
> Network drives have a universal network name that any computer on the network can recognize. That's why we have network drives, to access them from
> several computers. There are some times when, at least as a developer, I need to know the real network name of the drive...
if you want to know the ‘share’ name, then you just strip /Volumes/ from the name, but this does not give you the host name, nor the protocol used
Best,
Stefan
Hi
> I think I've finally found a decent solution with NSFileManager and NSURLVolumeURLForRemountingKey.
> I've tested it, it returns "//GUEST:@ls-wsgl27b/share"... Victory!
congratulations :-) does this give you the file scheme as well ? or do you just default to smb ?
Best,
Stefan
Hi
me again,
> I think I've finally found a decent solution with NSFileManager and NSURLVolumeURLForRemountingKey.
> I've tested it, it returns "//GUEST:@ls-wsgl27b/share"... Victory!
do you do the same on MSW, ie do you have a function to get the UNC behind a volume mounted as a letter volume, eg Z:/ ?
Best,
Stefan
>
> congratulations :-) does this give you the file scheme as well ? or do you just default to smb ?
Thank you! In fact, I made a typo, it returns "smb://GUEST:@ls-wsgl27b/share"