Page 1 of 1

Creation of directory structure using DOS batch

Posted: 02 Jun 2009 07:21
by swift.fire
I would like to create a directory as follows

mkdir c:\abc def
(The directory name is 'abc def')

while running this command, two directories abc and def are created in two different folders.

any help will be appriciated.

Posted: 02 Jun 2009 08:19
by RElliott63
MKDIR C:\"ABC DEF"
MKDIR "C:\ABC DEF"
MD C:\"ABC DEF"

Conversely:

RD "ABC DEF"
RD C:\"ABC DEF"
RD "C:\ABC DEF"