Click here for important information about

Batch File Help Needed Please!

Microsoft Windows xp home edition with s...
July 8, 2010 at 02:56:27
Specs: Windows XP, n/a
Hi All,

I'm really new to creating batch files. Ive been trying to teach myself from website tutorials but I've hit a wall.

Im trying to make a simple batch file to create a folder inside an existing directory. speicifcally, c:/documents and settings

but when I run my batch file, it creates 4 folders... "Documents", "and", "Settings" and inside Settings, it creates my folder, "New".. please can you tell me what i'm doing wrong?

batch cmds as follows:

Echo OFF

MD c:\documents and settings\NEW


See More: Batch File Help Needed Please!

July 8, 2010 at 03:16:33
Believe it or not, it is doing exactly what you told it to do. Spaces are used as delimiters. If you want to specify a path that has spaces in the name, use quotations, like

MD "C:\Documents and Settings\NEW"

See this related Microsoft Knowledgebase article:

Report •

July 8, 2010 at 03:46:43

Thanks idisjunction, that did the trick :)

Report •
Related Solutions

Ask Question