Move
| Action: | Moves files and renames files and
directories. |
||||||||||
| Syntax: |
Move
"source" "target"
[/c] [/h] [/p] [/r] [/s]
|
||||||||||
| Remarks: |
If the source or target specifies a directory, please make sure to add a trailing backslash. If the target exists, the source will be moved below the target. If the target does not exist, the source will be renamed. Wildcards are supported.
MOVE overwrites existing files without warning. |
||||||||||
| See Also: |
CD,
Copy,
Del, Go, MD,
RD |
||||||||||
| Examples: |
; If NewDir does not exist, this command
will RENAME ; MyDir to NewDir: MOVE "S:\MyDir\" "S:\NewDir\" ; If NewDir does exist, this command will MOVE MyDir ; below NewDir: MOVE "S:\MyDir\" "S:\NewDir\" ; This command will change the extension of all files ; matching the wildcard specification to '.bak' MOVE "MyDir\file*.txt" "MyDir\file*.bak" |