SpartaDOS X Reference Manual

The Command Processor — Commands




MKDIR (Make Directory) Command

Index


Purpose

This command creates a subdirectory.
 

Syntax MKDIR [d:]path
 
Alias MD & CREDIR
 
Type Internal
 
Related CHDIR, RMDIR, PATH
 
Remarks If you do not specify a drive, the default drive is assumed. This function is not supported by the ATARIDOS.SYS driver even though subdirectories are supported by that driver.

Directories (also called subdirectories or folders) are used like file folders to organize your files. They also keep a large storage area fast. In a file cabinet it is much quicker to go to a file folder and search through a few documents, than a pile of all your documents. Computers work the same way. It is much quicker for DOS to go directly to a subdirectory and search through a few files than it is to search through one long file list.

Directory names are stored like filenames but marked with the +S attribute bit. They may not be renamed or deleted in the normal ways in which files are. To renarne a subdirectory you must copy all files from inside it to another area, then delete all the files in it, use RMDIR to delete the directory, then create a new name with CREDIR, and copy the files back to it. Otherwise, you can use RENDIR.COM from SpartaDOS Tool Kit.

    MD TEST
    MKDIR 3:>MODEM>TEST

The first example creates a subdirectory on the default drive called "TEST". The second example creates a subdirectory on D3: by the name of "TEST" in the subdirectory called MODEM which is in the MAIN directory.


Previous page

Next page