MKDIR
This page was last modified 13:21, 1 June 2020 by Gdx. Based on work by Mars2000you.

Contents

Effect

Creates (makes) a new directory.

This operation will also automatically create two special sub-directories called '.' and '..'. These folders allow '.' and '..' to be given in path names to signify the current and parent directories respectively.

This command works with MSX-DOS 2, as provided by the MSX-DOS 2 cartridge or the MSX Turbo R machines, with a MSX-DOS 2 disk in the current active drive. It is also supported by Nextor.

Note: Only one directory can be created at a time.

Syntax

MKDIR <Device>:\<Path>\

Notes:

  • MKDIR can be replaced by MD
  • Character backslash (\) serves as a separator between the folders and the file name in MSX-DOS2. You don't have to put it after the colon of the device name. Character backslash is replaced by the character yen (¥) on Japanese MSX or the character won (₩) on Korean MSX.
  • Wildcards can not be used.

Parameters

<Device> is the name of destination device. It can only be a disk drive.

If you don't specify the drive, the instruction will be applied to the current drive (by default, it's drive A:)

Device type Device name Remark
Disk drive A, B, C, D, E, F, G, H A floppy disk interface can control until 2 drives.


<Path> is used to specify the location in folders of folder to create. The last name (the rightmost one) must be the name of the new folder.

Examples

A>MKDIR \GAMES
A>MKDIR B:\GAMES\APP1
A>MD \UTIL\RAM

Related to

ATDIR, CHDIR, DIR, MVDIR, RMDIR, RNDIR

Compatibility

MSX-DOS 2 / Nextor with COMMAND2.COM v2.20 and higher