Utility Descriptions 5-41
MOVE
The MOVE command moves files and renames files and directories.
Syntax
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
Remarks
[
drive
:][
path
]
filename1
specifies the location and name of the file or files
you want to move.
destination
specifies the new location of the file. Destination can consist
of a drive letter and colon, a directory name, or a combination. If you are
moving only one file, you can also include a filename if you want to
rename the file when you move it.
[
drive
:][
path
]
dirname1
specifies the directory you want to rename.
dirname2
specifies the new name of the directory.
Options
/Y suppresses prompting to confirm creation of a directory or overwriting
of the destination.
/-Y causes prompting to confirm creation of a directory or overwriting of
the destination. The /Y option may be present in the COPYCMD
environment variable. This may be overridden with /-Y.