Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

move (command)

From Wikipedia, the free encyclopedia
Shell command for moving files
move
TheReactOSmove command
DevelopersMicrosoft,IBM,JP Software,DR,Novell, Joe Cosentino, ReactOS Contributors
Written inFreeDOS,ReactOS:C
Operating systemMS-DOS,PC DOS,MSX-DOS,OS/2,eComStation,ArcaOS,Windows,DR DOS,FreeDOS,ReactOS
PlatformCross-platform
TypeCommand
LicenseFreeDOS, ReactOS:GPLv2

move is ashellcommand for renaming and movingfiles anddirectories.[1]

The command is in various shells includingCOMMAND.COM,Command Prompt,[2]4DOS/4NT. InPowerShell,move is a predefinedcommand alias for theMove-ItemCmdlet which serves the same essential purpose.

The command is available in variousoperating systems includingDOS,[3]OS/2,[4]Windows andReactOS.[5] OnMS-DOS, the command is available in versions 6 and later.[6] TheFreeDOS version was developed by Joe Cosentino.[7]DR DOS 6.0 includes an implementation of themove command.[8] Theopen-source MS-DOSemulatorDOSBox has noMOVE command. Instead, theREN command can be used to move files.[9]

The command is analogous to theUnix-basedmv command and to theOpenVOSmove_file andmove_dircommands.[10]

Options

[edit]
  • /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 theCOPYCMD environment variable. Then, that can be overridden via the/-y command-line option.

Examples

[edit]

The following command renames a file or directoryfoo tobar ifbar is not an existing directory. If it is an existing directory, thenfoo is moved intobar and is then at pathbar\foo.

> move foo bar

See also

[edit]

References

[edit]
  1. ^MS-DOS and Windows command line move command
  2. ^"Move".Microsoft Docs. 11 September 2009.Archived from the original on 2017-08-26. Retrieved2017-08-26. Microsoft TechNet Move article
  3. ^Jamsa, Kris A. (1993),DOS: The Complete Reference,Osborne McGraw-Hill, p. 206,ISBN 0078819040,archived from the original on 2018-01-25.
  4. ^"JaTomes Help - OS/2 Commands".www.jatomes.com. Archived fromthe original on 2019-04-14.
  5. ^"reactos/move.c at master".GitHub.Archived from the original on 2019-10-01.
  6. ^Wolverton, Van (2003).Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition.Microsoft Press.ISBN 0-7356-1812-7.
  7. ^ibiblio.org FreeDOS Package -- Move (FreeDOS Base)
  8. ^"DR DOS 6.0 User Guide Optimisation and Configuration Tips"(PDF). Archived fromthe original(PDF) on 2019-09-30. Retrieved2019-08-12.
  9. ^Commands - DOSBoxWiki
  10. ^"OpenVOS Commands Reference Manual"(PDF).StrataDOC Online Documentation Service for Stratus Products. pp. 2–552,2–558. Archived fromthe original(PDF) on 2019-09-22. RetrievedOctober 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

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Move_(command)&oldid=1290714895"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp