Microsoft DOS md and mkdir command
About md and mkdir
Allows you to create directories in MS-DOS.
The md and mkdir commands are internal commands that are available in the below Microsoft operating systems.
Md and mkdir syntax
Creates a directory.
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:
is the same as:
which is what you would have to type if extensions were disabled.
Md and mkdir examples
The above example 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.
Create the "test" directory in the c:\ directory.
Create the "test1" directory (if it does not already exist), and then the "test2" sub-directory, in the c:\ directory.
- See our directory definition for further information and related links on this term.