From Br Wiki
Jump to: navigation, search

The MkDir command creates a subdirectory in the current directroy or on a specified drive in a specified directory. You may also simply use the first 2 letters of the command - MK. For a complete list of abbreviations, visit the Keyword Abbreviation page


MKDIR [<drive>:\] [<path>\] [-N] <new directory>



Use the current drive.


The optional drive parameter indicates the drive letter of the disk on which you wish to create a subdirectory. It must be followed by a colon and a backslash.

Path indicates the path of directory names that lead to the subdirectory to be created.

If the specified path does not begin with a backslash, BR automatically precedes it with the current directory path.

If the specified path begins with a backslash, BR creates the subdirectory in the root directory.

Comments and Examples

The MKDIR command can create a subdirectory of either the root directory or the current directory. The number of subdirectories you can create is limited only by the operating system and the amount of available disk space. Two files or subdirectories can have the same name as long as they are located in different directories.

Subdirectory names use the same format as file names and accept all the same characters.

In the following example, the first command changes the current directory to ACCTNG.FIL. The MKDIR command then creates YEAREND as a subdirectory of ACCTNG.FIL:


If the current drive and directory reference is C:\EQUIP\MFG, the following command would create the subdirectory C:\EQUIP\MFG\MAINT:


The following command creates a new subdirectory of the C:\WANDIR directory, even when the system is currently accessing another directory on drive C: