move (command)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
move
DevelopersMicrosoft, IBM, JP Software, DR, Novell, Joe Cosentino, ReactOS Contributors
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inFreeDOS, ReactOS: C
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemMS-DOS, PC DOS, MSX-DOS, OS/2, eComStation, ArcaOS, Windows, DR DOS, FreeDOS, ReactOS
    PlatformCross-platform
    TypeCommand
    LicenseFreeDOS, 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

    [edit | edit source]
    • /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

    [edit | edit source]

    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

    [edit | edit source]

    References

    [edit | edit source]
    1. ^ MS-DOS and Windows command line move command
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value). Microsoft TechNet Move article
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ ibiblio.org FreeDOS Package -- Move (FreeDOS Base)
    8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    9. ^ Commands - DOSBoxWiki
    10. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

    Further reading

    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]