Move (command)
| move | |
|---|---|
The ReactOS move command | |
| Developers | 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 |
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, move 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,[3] OS/2,[4] Windows and ReactOS.[5] On MS-DOS, the command is available in versions 6 and later.[6] The FreeDOS version was developed by Joe Cosentino.[7] 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
- ^ MS-DOS and Windows command line move command
- ^ "Move". Microsoft Docs. 11 September 2009. Archived from the original on 2017-08-26. Retrieved 2017-08-26. Microsoft TechNet Move article
- ^ Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, p. 206, ISBN 0078819040, archived from the original on 2018-01-25.
- ^ "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14.
- ^ "reactos/move.c at master". GitHub. Archived from the original on 2019-10-01.
- ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
- ^ ibiblio.org FreeDOS Package -- Move (FreeDOS Base)
- ^ "DR DOS 6.0 User Guide Optimisation and Configuration Tips" (PDF). Archived from the original (PDF) on 2019-09-30. Retrieved 2019-08-12.
- ^ Commands - DOSBoxWiki
- ^ "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
- Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. Microsoft Press. ISBN 978-1556152894.
- Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. Osborne McGraw-Hill. ISBN 978-0078818714.
- Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. O'Reilly. ISBN 978-0-596-00148-3.
External links
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.