create a directory which name contains spaces

Hi I am trying to create a batch file that would create a directory named Advanced Users, i know we can not use spaces but i am sure there is a way to bypass that, any ideas?
I am using
md "advanced users"
Thank you
LVL 4
abitounAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bradleys40Commented:
md "c:\yourpath\named users"
use quotes
0
bradleys40Commented:
sorry advanced not named
insert the quotes around the path
md "c:\yourpath\advanced users"
0
jwaldonCommented:
What exactly is not working or what kind of error is it giving you? I tried to duplicate your issue and it works fine for me.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Steve KnightIT ConsultancyCommented:
If you do

c:
cd \
md test
cd \test
md a long name with spaces in

You end up with

c:\test\a
c:\test\long
c:\test\name
c:\test\with
etc.

i.e. unless you add the quotes as suggested it will create each dir listed on the line.

I imagine that this is what the requestor was finding was happening

Steve
0
jwaldonCommented:
Well he included  quotes around the dir when he posted his question so I'm not sure about that.
0
abitounAuthor Commented:
Hi, Thank you to all that responded, I was missing a double quote!
0
bradleys40Commented:
i dont understand how the point were allocated here was there a problem or was I just wasting my time
0
W3a53735Commented:

If the OS is MSDOS with an LFN driver then ...
md advanced_users
then use a HEX disk editor, such as NORTON DISK DOCTOR to replace the
"_" with  " "

Probably not what you wanted.

What is the OS?

Steve....
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.