【发布时间】:2018-09-04 00:59:57
【问题描述】:
我在一个文件夹中有一堆文件,例如:
file1-regular-exp-suffix1
file2-regular-exp-suffix2
... 等等。
我尝试使用通配符 (*) 重命名 cmd 中的文件:
ren *regular-exp* *new-exp*
但这不起作用。有人知道怎么做吗?
【问题讨论】:
-
请描述“这不起作用”是什么意思,例如给出文件名的示例,regular-exp,你使用的命令,以及你得到的结果。
-
这些文件只是一堆 csv 文件:dallas-stop-and-search-2015.csv dallas-stop-and-search-2016.csv newyork-stop-and-search-2015。 csv 等等...我想将每个包含“停止搜索”的文件重命名为:dallas-X-2015 dallas-X-2016
标签: windows cmd rename wildcard