批處理重命名檔夾

要重命名檔夾,可使用批處理腳本提供的RENRENAME命令。

語法

RENAME [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]

我們來看一些重命名檔夾的例子。

示例

ren Example Example1

上面的命令將把當前工作目錄中名為Example的檔夾重命名為Example1

del C:\Example Example1

上面的命令會將C盤中名為Example的檔夾重命名為Example1


上一篇: 批處理檔夾操作 下一篇: 批處理進程