MKDIR(MD)

(make directory)


创建目录,使用MKDIRMD命令可创建多级目录结构。

 

MKDIR [drive:]path

MD [drive:]path

 

drive:                       指定待创建目录所在的驱动器。

path                        指定新目录的名字和位置,从根目录到新目录的每条路径的名称最多可含63个字符(包括反斜线)

 

如果命令扩展名被启用,MKDIR 会如下改变:

如果需要,MKDIR 会在路径中创建中级目录。

例如:假设 \a 不存在,那么:

    mkdir \a\b\c\d

与下面相同:

    mkdir \a

    chdir \a

    mkdir b

    chdir b

    mkdir c

    chdir c

mkdir d

如果扩展名被停用,则需要键入 mkdir \a\b\c\d


Creates a directory.

 

MKDIR [drive:]path

MD [drive:]path

 

If Command Extensions are enabled MKDIR changes as follows:

 

MKDIR creates any intermediate directories in the path, if needed.

For example, assume \a does not exist then:

 

    mkdir \a\b\c\d

 

is the same as:

 

    mkdir \a

    chdir \a

    mkdir b

    chdir b

    mkdir c

    chdir c

    mkdir d

 

which is what you would have to type if extensions were disabled.