CMD将文件扩展名*.hmtl.deploy删除为*.html

dj2*_*j22 0 file-extension cmd removeall

我在目录中有几百个文件,其中.deploy有些.html其他文件是.js或.css

我想要做的是从directoryX和子目录中的所有文件中删除.deploy.我尝试使用ren*.html.deploy*.html,输出为.html.html.

我不使用cmd很多,所以我不熟悉命令或我应该使用谷歌的条款.

Ric*_*aña 6

你有没有尝试过:

for /r %x in (*.deploy) do ren "%x" *.
Run Code Online (Sandbox Code Playgroud)