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 OFFMD c:\documents and settings\NEW
pause
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:
Brilliant! Thanks idisjunction, that did the trick :)
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |