| move | |
|---|---|
TheReactOS move command | |
| Developers | Microsoft,IBM,JP Software,DR,Novell, Joe Cosentino, ReactOS Contributors |
| Written in | FreeDOS,ReactOS:C |
| Operating system | MS-DOS,PC DOS,MSX-DOS,OS/2,eComStation,ArcaOS,Windows,DR DOS,FreeDOS,ReactOS |
| Platform | Cross-platform |
| Type | Command |
| License | FreeDOS, ReactOS:GPLv2 |
move is ashellcommand for renaming and movingfiles anddirectories.[1]
The command is in various shells includingCOMMAND.COM,Command Prompt,[2]4DOS/4NT. InPowerShell,move is a predefinedcommand alias for theMove-ItemCmdlet which serves the same essential purpose.
The command is available in variousoperating systems includingDOS,[3]OS/2,[4]Windows andReactOS.[5] OnMS-DOS, the command is available in versions 6 and later.[6] TheFreeDOS version was developed by Joe Cosentino.[7]DR DOS 6.0 includes an implementation of themove command.[8] Theopen-source MS-DOSemulatorDOSBox has noMOVE command. Instead, theREN command can be used to move files.[9]
The command is analogous to theUnix-basedmv command and to theOpenVOSmove_file andmove_dircommands.[10]
/y – Suppress prompting to confirm overwriting an existing destination file/-y – Prompt to confirm overwriting an existing destination fileBy default, the command prompts to overwrite unless executed in a batch script. The default can be modified by including the/y option in theCOPYCMD environment variable. Then, that can be overridden via the/-y command-line option.
The following command renames a file or directoryfoo tobar ifbar is not an existing directory. If it is an existing directory, thenfoo is moved intobar and is then at pathbar\foo.
> move foo bar
move_dir: Purpose: This command moves a directory and its contents from one place to another. ... move_file: Purpose: This command moves a file or set of files to another file or directory.