批次處理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
所有操作都按照批次處理檔案中的註釋執行。