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 NameDefault LocationDos Ver.Win Ver.SizeDateSource
Move.exec:\windows\command 7.0Win95 27 235111/07/95win95_09.cab
7.1Win95 (OSR2.x) 27 235124/08/96win95_14.cab
Win98 27 299211/05/98win98_41.cab
Win98 SE 27 299223/04/99win98_46.cab

Superscripts denote which same size files, if any, are identical (using FC).


This page last revised:
August 28, 2000.