Export (0) Print
Expand All
Arp
At
Cd
Cls
Cmd
Del
Dir
Fc
For
Ftp
If
Ldp
Lpq
Lpr
Md
Mmc
Msg
Nlb
Rcp
Rd
Reg
Rem
Ren
Rsh
Rsm
Rss
Sc
Set
Sfc
Ver
Vol
Expand Minimize

Md

Updated: April 17, 2012

Applies To: Windows Server 2008, Windows Vista

Creates a directory or subdirectory.

noteNote
This command is the same as the mkdir command.

For examples of how to use this command, see Examples.

md [<Drive>:]<Path>
mkdir [<Drive>:]<Path>

 

Parameter Description

<Drive>:

Specifies the drive on which you want to create the new directory.

<Path>

Required. Specifies the name and location of the new directory. The maximum length of any single path is determined by the file system.

/?

Displays help at the command prompt.

Command extensions, which are enabled by default, allow you to use a single md command to create intermediate directories in a specified path.

To create a directory named Directory1 within the current directory, type:

md Directory1

To create the directory tree Taxes\Property\Current within the root directory, with command extensions enabled, type:

md \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:

md \Taxes
cd \Taxes 
md Property
cd Property
md Current

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft