Mounting an SMB directory with a space from command line on MAC OSX

I am having a problem mounting a SMB directory that contains a space from the command line I have tried all of the following (USERNAME, PASSWORD are the correct username and password in my case, XX.XX.XX.XX is the correct ip address, SHARENAME is the correct share name):

mount -t smbfs smb://USERNAME:PASSWORD@XX.XX.XX.XX/SHARENAME/My\ Shapes /tmp/share
mount -t smbfs smb://USERNAME:PASSWORD@XX.XX.XX.XX/SHARENAME/My\040Shapes /tmp/share

directories with no spaced work perfectly e.g. with above command this works perfectly:

mount -t smbfs smb://USERNAME:PASSWORD@XX.XX.XX.XX/SHARENAME/MyShapes /tmp/share
Javier_ArroyoAsked:
Who is Participating?
 
Lieven EmbrechtsSenior IT ConsultantCommented:
In place of any space in the share name, type: %20
0
 
strungCommented:
I think you need to put the share name in quotes if it includes spaces:

http://support.microsoft.com/kb/92781
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.