mkdir (创建目录)

小猪老师 发表于 2020-06-23 14:39
浏览次数:
在手机上阅读

md和mkdir命令允许用户创建目录。

查看英文版

目录

1 mkdir 运行系统环境

2 md and mkdir 语法

3 md and mkdir 示例

mkdir 运行系统环境

Windows 95

Windows 98

Windows xp

Windows vista

Windows 2000

Windows 7

Windows 8

Windows 10

Windows NT

Windows ME

All Versions of MS-DOS

md and mkdir 语法

创建一个目录。

MKDIR [drive:]path
MD [drive:]path

如果启用了命令扩展,MKDIR将更改如下:

MKDIR创建路径中的任何中间目录(如果需要的话)。
例如,假设\a不存在:

mkdir \a\b\c\d

等于:

mkdir \a
chdir \a
mkdir b
chdir b
mkdir c
chdir c
mkdir 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.

查看英文版

查看中文版

md and mkdir 示例

md test

上面的示例在当前目录中创建了“test”目录。

mkdir "computer hope"

上面的命令将创建一个名为“computer hope”的目录。如果您希望在目录名中使用空格,则必须将其括在引号中。

md c:\test

在c:\目录中创建“test”目录。

md c:\test1\test2

创建“test1”目录(如果它还不存在),然后在c:\目录中创建“test2”子目录。

md test

The example above creates the "test" directory in the current directory.

mkdir "computer hope"

The above command would create a directory called "computer hope". If you want a space in your directory name, it must be surrounded in quotes.

md c:\test

Create the "test" directory in the c:\ directory.

md c:\test1\test2

Create the "test1" directory (if it does not already exist), and then the "test2" sub-directory, in the c:\ directory.

查看英文版

查看中文版

其他命令行

map | md | mem | mklink | mode | more | move | msav | msbackup | mscdex | msd | msg |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条