MS-DOS External Commands
The MOVE Command
Description:
Moves files and renames files and directories.
Command Syntax:
To move one or more files:
MOVE [/Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [drive:][path]dirname1 dirname2
Explanation of Syntax:
[/Y] suppresses prompting to confirm creation of a directory.
[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.
Note: If the destination you specify is an existing file, MOVE replaces that file with the file you are moving.
Command Use:
This command can be used at the command prompt and in batch files.