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

Contents

Effect

Moves directories from one place to another on a disk.

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: It is not possible to move a directory into one of it's own descendant directories, as this would produce an invalid sub-directory tree. An error is given if this is attempted.

Syntax

MVDIR /H /P <Device>:\<Path>\ + <Device>:\<Path>\... \<NewPath>\

Notes:

  • 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. Backslash is replaced by the character yen (¥) on Japanese MSX or the character won (₩) on Korean MSX.
  • Character slash (/) serves to declare an option. You can put the options after the command or behind all other parameters.

Parameters

<Device> is the name for used device. It can only be a disk drive.

If you don't specify the drive, the computer will work with the currently active 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 that needs to be moved. The last name (the rightmost one) must be the name of the folder to move. Wildcards can replace some characters in folder name to get several folders. The asterisk (*) and question mark (?) are used as wildcard characters. The asterisk matches any sequence of characters, whereas the question mark matches any single character.

<NewPath> is used to specify the location in folders of the destination folder. When not specified, the current folder will be used.

/H is used to allow the changing of location for hidden folders.

/P is used to allow a pause at the end of the screen when displaying error messages (for example if the destination folder already exists).

MSX-DOS 2 / Nextor allows to move simultaneously several (series of) folders with the + part of the mentioned syntax.

Examples

A>MVDIR COM UTIL
A>MVDIR B:DIR? /H /P ALL
A>MVDIR \COM + \BAT \UTIL

Related to

ATDIR, CHDIR, DIR, MKDIR, RMDIR, RNDIR

Compatibility

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