MkDir: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(Imported the MKDIR page from old wiki and heavily edited it)
 
(Created and added new Syntax diagram)
Line 2: Line 2:


==Syntax==
==Syntax==
[[Image:HELP0048.jpg]]
[[Image:MkDir.png]]


==Default==
==Default==

Revision as of 08:35, 19 December 2011

The MkDir command creates a subdirectory on a specified disk. Subdirectories make files easier to organize and maintain. You may also simply use the first 2 letters of the command - MK. For a complete list of abbreviations, visit the Keyword Abbreviation page

Syntax

Default

Use the current default drive.

Parameters

The syntax of the MKDIR command allows you to choose one of two possible syntactical routes.

In the top route, 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.

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, Business Rules automatically precedes it with the current default directory path.

Comments and Examples

The MKDIR command can create a subdirectory of either the root directory or the default 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 default directory to ACCTNG.FIL. The MKDIR command then creates YEAREND as a subdirectory of ACCTNG.FIL:

CHDIR ACCTNG.FIL
MKDIR YEAREND

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

MKDIR 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:

MKDIR C:\\WANDIR\\CLASSACT