Move


Applies To: Windows Server 2008,Windows Vista

Moves one or more files from one directory to another directory.

For examples of how to use this command, see Examples.

Syntax


Copy Code

move [{/y | /-y}] [<Source>] [<Target>]

Parameters

Parameter

Description

/y

Suppresses prompting to confirm that you want to overwrite an existing destination file.

/-y

Causes prompting to confirm that you want to overwrite an existing destination file.

<Source>

Specifies the path and name of the file or files to move. If you want to move or rename a directory, Source should be the current directory path and name.

<Target>

Specifies the path and name to move files to. If you want to move or rename a directory, Target should be the desired directory path and name.

/?

Displays help at the command prompt.

Remarks

Examples

To move all files with the .xls extension from the \Data directory to the \Second_Q\Reports directory, type:


Copy Code

move \data\*.xls \second_q\reports\

Additional references

Command-Line Syntax Key