Move (command) explained
| move |
| Developer: | Microsoft, IBM, JP Software, DR, Novell, Joe Cosentino, ReactOS Contributors |
| Programming Language: | FreeDOS, ReactOS: C |
| Operating System: | MS-DOS, PC DOS, MSX-DOS, OS/2, eComStation, ArcaOS, Windows, DR DOS, FreeDOS, ReactOS |
| Platform: | Cross-platform |
| Genre: | Command |
| License: | FreeDOS, ReactOS: GPLv2 |
move is a shell command for renaming and moving files and directories.[1]
The command is in various shells including COMMAND.COM, Command Prompt,[2] 4DOS/4NT. In PowerShell, is a predefined command alias for the Move-Item Cmdlet which serves the same essential purpose.
The command is available in various operating systems including DOS, OS/2,[3] Windows and ReactOS.[4] On MS-DOS, the command is available in versions 6 and later.[5] The FreeDOS version was developed by Joe Cosentino.[6] DR DOS 6.0 includes an implementation of the command.[7] The open-source MS-DOS emulator DOSBox has no MOVE command. Instead, the [[ren (command)|REN]] command can be used to move files.[8]
The command is analogous to the Unix-based [[mv (Unix)|mv]] command and to the OpenVOS move_file and move_dircommands.[9]
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 to if is not an existing directory. If it is an existing directory, then is moved into and is then at path .
> move foo bar
See also
Further reading
- Book: Wolverton. Van. MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. 1990. Microsoft Press. 978-1556152894.
- Book: Kathy Ivens. Brian Proffit. 1993. OS/2 Inside & Out. Osborne McGraw-Hill. 978-0078818714.
- Book: Frisch, Æleen. 2001. Windows 2000 Commands Pocket Reference. O'Reilly. 978-0-596-00148-3.
External links
Notes and References
- https://www.computerhope.com/movehlp.htm MS-DOS and Windows command line move command
- Web site: Move . Microsoft Docs . 11 September 2009 . 2017-08-26 . live . https://web.archive.org/web/20170826175654/https://technet.microsoft.com/en-us/library/bb490935.aspx . 2017-08-26 . Microsoft TechNet Move article
- Web site: JaTomes Help - OS/2 Commands . www.jatomes.com . dead . https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php . 2019-04-14.
- Web site: reactos/move.c at master . GitHub . live . https://web.archive.org/web/20191001164803/https://github.com/reactos/reactos/blob/master/base/shell/cmd/move.c . 2019-10-01.
- Book: Wolverton. Van. Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. 2003. Microsoft Press. 0-7356-1812-7.
- http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/move.html ibiblio.org FreeDOS Package -- Move (FreeDOS Base)
- Web site: DR DOS 6.0 User Guide Optimisation and Configuration Tips . 2019-08-12 . https://web.archive.org/web/20190930135943/http://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf . 2019-09-30 . dead .
- https://www.dosbox.com/wiki/Commands Commands - DOSBoxWiki
- Web site: OpenVOS Commands Reference Manual . StrataDOC Online Documentation Service for Stratus Products . "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." . 2-552, 2-558 . October 1, 2019 . dead . https://web.archive.org/web/20190922035829/https://stratadoc.stratus.com/vos/19.1.0/r098-19/wwhelp/wwhimpl/common/html/r098-19.pdf . 2019-09-22 .