建立目錄或子目錄。 Command extensions, which are enabled by default, allow you to use a single mkdir command to create intermediate directories in a specified path.
Note
This command is the same as the md command.
Syntax
mkdir [<drive>:]<path>
Parameters
Parameter | Description |
---|---|
<drive> : |
指定您要在其中建立新目錄的磁碟驅動器。 |
<path> |
指定新目錄的名稱和位置。 檔系統決定任何單一路徑的最大長度。 這是必要參數。 |
/? | 在命令提示字元中顯示說明。 |
Examples
To create a directory named Directory1 within the current directory, type:
mkdir Directory1
To create the directory tree Taxes\Property\Current within the root directory, with command extensions enabled, type:
mkdir \Taxes\Property\Current
To create the directory tree Taxes\Property\Current within the root directory as in the previous example, but with command extensions disabled, type the following sequence of commands:
mkdir \Taxes
mkdir \Taxes\Property
mkdir \Taxes\Property\Current