MOVE.EXE
| Company type | Shell command |
|---|---|
| Industry | Computer software |
| Founder | Joe Cosentino (FreeDOS version) |
| Products | File and directory relocation and renaming utility |
| Website | learn |
move is a shell command designed for relocating and renaming files as well as directories. It is available in multiple shells including COMMAND.COM, Command Prompt, 4DOS/4NT, and appears in PowerShell as an alias for the Move-Item Cmdlet.
This command is compatible with a variety of operating systems such as DOS, OS/2, Windows, and ReactOS. Within the MS-DOS environment, it has been included starting with version 6. Joe Cosentino developed the version found in FreeDOS. Furthermore, DR DOS 6.0 offers its own variant. It is important to note that the open-source MS-DOS emulator DOSBox does not provide a MOVE command; instead, the REN command fulfills a similar role.
In terms of functionality, move serves as the counterpart to the Unix mv command and is analogous to OpenVOS commands such as move_file and move_dir, which handle moving files and directories respectively.
Options
/y– Prevents prompting when overwriting existing destination files/-y– Enables confirmation prompt before overwriting existing destination files
By default, the command requests confirmation prior to overwriting files unless executed within a batch script. This default can be modified using the /y option in the COPYCMD environment variable and overridden by specifying /-y on the command line.
Examples
When the destination is not an existing directory, the command renames or moves a file or directory from to . However, if exists as a directory, will be relocated inside it at path .
> move foo bar