Specifications
Version 2.0
163
mkdir
Summary
Creates one or more new directories.
Usage
mkdir dir [dir...]
Options
dir
Name of directory or directories to be created. Wildcards are not allowed.
Description
This command creates one or more new directories. If dir includes nested directories,
then parent directories will be created before child directories. If the directory already
exists, then the command will exit with an error.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted or its
value was out of bounds.
SHELL_OUT_OF_RESOURCES There was insufficient space on the destination to create the
requested directory.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation
SHELL_WRITE_PROTECTED An attempt was made to create a directory when the target
media was write-protected.
Examples
To create a new directory:
fs0:\> mkdir rafter
fs0:\> ls
Directory of: fs0:\
06/18/01 08:05p <DIR> 512 test
06/18/01 11:14p r 29 readme.txt
06/18/01 11:50p <DIR> 512 rafter
1 File(s) 211 bytes
2 Dir(s)
• To create multiple directories:










