SMB share re-naming?
SMB share re-naming?
- Subject: SMB share re-naming?
- From: Michael Thole <email@hidden>
- Date: Tue, 29 Apr 2003 21:30:39 -0500
Is there any way to rename the name displayed on the desktop for a SMB
share? I'm programatically mounting (on Jaguar) a share using
FSMountServerVolumeSync() and a url that looks something like this:
smb://user:pass@hostname/sharename/volname. Currently, it mounts as
expected, but instead of the Finder displaying the 'volname' on the
Desktop, it displays the 'sharename'. If I go and examine my /Volumes
folder, I'll find that it is actually named properly to 'volname'.
I've tried funky things like mounting to a folder in the Desktop (and
telling the finder not to automatically show mounted volumes), but that
just results in a horrible user experience and confuses the hell of out
the Finder.
Another, much more minor problem:
When the 'volname' contains spaces, I escape them to ' ' (via
CFURLCreateStringByAddingPercentEscapes) before using
FSMountServerVolumeSync(). Unfortunately the system doesn't un-escape
these characters, so if my volume name is 'Dev Notes', then I get the
folder: '/Volumes/Dev Notes'.
Any help is much appreciated,
Michael Thole
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.