Creation of directory structure using DOS batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
swift.fire
Posts: 4
Joined: 21 May 2009 05:18

Creation of directory structure using DOS batch

#1 Post by swift.fire » 02 Jun 2009 07:21

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.

RElliott63
Expert
Posts: 80
Joined: 04 Feb 2009 10:03

#2 Post by RElliott63 » 02 Jun 2009 08:19

MKDIR C:\"ABC DEF"
MKDIR "C:\ABC DEF"
MD C:\"ABC DEF"

Conversely:

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

Post Reply