move (command)

Source: Wikipedia, the free encyclopedia.
move

move is a shell command for renaming and moving files and directories.[1]

The command is in various shells including

Cmdlet
which serves the same essential purpose.

The command is available in various

DR DOS 6.0 includes an implementation of the move command.[8] The open-source MS-DOS emulator DOSBox has no MOVE command. Instead, the REN command can be used to move files.[9]

The command is analogous to the Unix-based mv command and to the OpenVOS move_file and move_dircommands.[10]

Options

  • /y – Suppress prompting to confirm overwriting an existing destination file
  • /-y – Prompt to confirm overwriting an existing destination file

By default, the command prompts to overwrite unless executed in a batch script. The default can be modified by including the /y option in the COPYCMD environment variable. Then, that can be overridden via the /-y command-line option.

Examples

The following command renames a file or directory foo to bar if bar is not an existing directory. If it is an existing directory, then foo is moved into bar and is then at path bar\foo.

> move foo bar

See also

References

  1. ^ MS-DOS and Windows command line move command
  2. ^ "Move". Microsoft Docs. 11 September 2009. Archived from the original on 2017-08-26. Retrieved 2017-08-26. Microsoft TechNet Move article
  3. from the original on 2018-01-25.
  4. ^ "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14.
  5. ^ "reactos/move.c at master". GitHub. Archived from the original on 2019-10-01.
  6. .
  7. ^ ibiblio.org FreeDOS Package -- Move (FreeDOS Base)
  8. ^ "DR DOS 6.0 User Guide Optimisation and Configuration Tips" (PDF). Archived from the original (PDF) on 2019-09-30. Retrieved 2019-08-12.
  9. ^ Commands - DOSBoxWiki
  10. ^ "OpenVOS Commands Reference Manual" (PDF). StrataDOC Online Documentation Service for Stratus Products. pp. 2–552, 2–558. Archived from the original (PDF) on 2019-09-22. Retrieved October 1, 2019. 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.

Further reading