Move

Index

Moves files and directories from one location to another on the same or different drives.

Syntax:

MOVE [/Y | /-Y] [path] filename destinationpath
/Y Suppresses prompting to confirm creation of a directory or overwriting of the destination.
This is the default when MOVE is used in a batch file.
/-Y Forces a prompt to confirm creation of a directory or overwriting of the destination.
This is the default when MOVE is used from the command line.

Notes:

  1. If only one file is to be moved, it can be renamed at the same time by including the new filename in destinationpath.

  2. If more than one file is listed to be moved, destinationpath must be a directory and the files will retain their original names.

  3. If a file is moved to a destination where there is already a file with the same name, the moved file overwrites the other (no warnings!).

  4. Using the "Y" switch overrides all defaults and the current setting of the COPYCMD environment variable.

Exit Codes:

0Successful completion of move.
1Errors in moving one or more files.

File Details

File NameVersionSizeDateDefault Location
Move.exe Win95: Upgrade27 23511/07/95c:\windows\command
Win95: OSR2.527 23524/08/96c:\windows\command

If you should have any comments or suggestions,
please contact: Bob Watson
.
This page last revised:
December 9, 1999.