批处理Move命令

批处理Move命令目录之间移动文件或目录。

语法

move [source] [destination]

文件将从源(source)复制到目标(destination)位置。

示例

以下示例显示了Move命令的用法。

@echo off
Rem Moves the file list.txt to the directory c:\tp
move C:\lists.txt c:\tp
Rem Renames directory Dir1 to Dir2, assuming Dir1 is a directory and Dir2 does not exist. 
move Dir1 Dir2
Rem Moves the file lists.txt to the current directory.
move C:\lists.txt

所有操作都按照批处理文件中的注释执行。


上一篇: 批处理命令 下一篇: 批处理文件