md
小猪老师 发表于 2020-06-23 14:36浏览次数:
The md and mkdir commands allow users to create directories.
目录:
1 md 运行系统环境
2 md and mkdir 语法
3 md and mkdir 示例
md 运行系统环境
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.