HOME

TheInfoList



OR:

In
computing Computing is any goal-oriented activity requiring, benefiting from, or creating computing machinery. It includes the study and experimentation of algorithmic processes, and development of both hardware and software. Computing has scientific, ...
, move is a
command Command may refer to: Computing * Command (computing), a statement in a computer language * COMMAND.COM, the default operating system shell and command-line interpreter for DOS * Command key, a modifier key on Apple Macintosh computer keyboards * ...
in various command-line interpreters ( shells) such as COMMAND.COM, cmd.exe,
4DOS 4DOS is a command-line interpreter by JP Software, designed to replace the default command interpreter COMMAND.COM in Microsoft DOS and Windows. It was written by Rex C. Conn and Tom Rawson and first released in 1989. Compared to the default, ...
/ 4NT, and PowerShell. It is used to move one or more files or
directories Directory may refer to: * Directory (computing), or folder, a file system structure in which to store computer files * Directory (OpenVMS command) * Directory service, a software application for organizing information about a computer network's ...
from one place to another. The original file is deleted, and the new file may have the same or a different name. The command is analogous to the
Unix Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, an ...
mv command and to the
OpenVOS Stratus VOS (Virtual Operating System) is a proprietary operating system running on Stratus Technologies fault-tolerant computer systems. VOS is available on Stratus's ftServer and Continuum platforms. VOS customers use it to support high-volume t ...
move_file and move_dircommands.


Implementations

The command is available in
DOS DOS is shorthand for the MS-DOS and IBM PC DOS family of operating systems. DOS may also refer to: Computing * Data over signalling (DoS), multiplexing data onto a signalling channel * Denial-of-service attack (DoS), an attack on a communicatio ...
, IBM
OS/2 OS/2 (Operating System/2) is a series of computer operating systems, initially created by Microsoft and IBM under the leadership of IBM software designer Ed Iacobucci. As a result of a feud between the two companies over how to position OS/2 ...
,
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washi ...
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for se ...
and
ReactOS ReactOS is a free and open-source operating system for amd64/i686 personal computers intended to be binary-compatible with computer programs and device drivers made for Windows Server 2003 and later versions of Windows. ReactOS has been noted ...
. On
MS-DOS MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few oper ...
, the command is available in versions 6 and later. In
Windows PowerShell PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-sourc ...
, is a predefined command alias for the Move-Item Cmdlet which basically serves the same purpose. The
FreeDOS FreeDOS (formerly Free-DOS and PD-DOS) is a free software operating system for IBM PC compatible computers. It intends to provide a complete MS-DOS-compatible environment for running legacy software and supporting embedded systems. FreeDOS ca ...
version was developed by Joe Cosentino.
DR DOS 6.0 DR-DOS (written as DR DOS, without a hyphen, in versions up to and including 6.0) is a disk operating system for IBM PC compatibles. Upon its introduction in 1988, it was the first DOS attempting to be compatible with IBM PC DOS and MS-D ...
includes an implementation of the command. The open-source MS-DOS emulator
DOSBox DOSBox is a free and open-source emulator which runs software for MS-DOS compatible disk operating systems—primarily video games. It was first released in 2002, when DOS technology was becoming obsolete. Its adoption for running DOS games i ...
has no MOVE command. Instead, the
REN Ren or REN may refer to: Abbreviations * Orenburg Tsentralny Airport, IATA code REN, civil airport in Russia * Redes Energéticas Nacionais (REN), Portuguese company * Renanthera, abbreviated as Ren, orchid genus * Ringer equivalence number ...
command can be used to move files.Commands - DOSBoxWiki
/ref>


Syntax

To move one or more files: MOVE /-Y rive:path]filename1 ...destination To rename a directory: MOVE /-Y rive:path]dirname1 estination\irname2 To move a directory: MOVE /-Y rive:path]dirname1 destination


Parameters

* rive:path]filename1: Specifies the location and name of the file or files you want to move. * destination: Specifies the new location of the file or directory. Destination can consist of a drive letter and colon, a directory name, or a combination, and must already exist. If you are moving only one file, you can also include a filename if you want to rename the file when you move it. * rive:path]dirname1: Specifies the directory you want to rename or move. * dirname2: Specifies the new name of the directory. * /Y: Suppresses prompting to confirm you want to overwrite an existing destination file. * /-Y: Causes prompting to confirm you want to overwrite an existing destination file. 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.


Notes

* When moving a directory, dirname1 and its contents wind up as a subfolder beneath destination. Caution is advised - if the final subfolder of the destination path does not exist, dirname1 will be both moved and renamed.


See also

* List of DOS commands * List of Unix commands


References


Further reading

* * *


External links


move , Microsoft Docs
{{Windows commands External DOS commands OS/2 commands ReactOS commands Windows commands Microcomputer software MSX-DOS commands Windows administration