批處理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

所有操作都按照批處理檔中的注釋執行。


上一篇: 批處理命令 下一篇: 批處理檔