In various command-line shells From Wikipedia, the free encyclopedia
In computing, move
is a command in various command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
,[1] 4DOS/4NT, and PowerShell. It is used to move one or more files or directories from one place to another.[2] The original file is deleted, and the new file may have the same or a different name. The command is analogous to the Unix mv
command and to the OpenVOS move_file
and move_dir
commands.[3]
![]() The ReactOS move command | |
Developer(s) | 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 |
The command is available in DOS,[4] IBM OS/2,[5] Microsoft Windows and ReactOS.[6] On MS-DOS, the command is available in versions 6 and later.[7] In Windows PowerShell, move
is a predefined command alias for the Move-Item
Cmdlet which basically serves the same purpose. The FreeDOS version was developed by Joe Cosentino.[8] DR DOS 6.0 includes an implementation of the move
command.[9] The open-source MS-DOS emulator DOSBox has no MOVE
command. Instead, the REN
command can be used to move files.[10]
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 [destination\]dirname2
To move a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 destination
The switch /Y may be present in the COPYCMD environment variable. This may be overridden with /-Y on the command line. Default is to prompt on overwrites unless MOVE command is being executed from within a batch script.
Seamless Wikipedia browsing. On steroids.