无涯教程-批处理 - REN函数

75 阅读1分钟

重命名文件和目录

REN - 语法

ren [oldfile/dirname] [newfile/dirname]

将文件名从旧文件/目录名重命名为新文件/目录名。

REN - 示例

@echo off 
ren C:\lists.txt C:\newlists.txt

文件 lists.txt 将重命名为 newlists.txt 。

参考链接

www.learnfk.com/batch-scrip…