How do I rename files in sub directories?

前端 未结 15 1419
臣服心动
臣服心动 2020-12-04 11:10

Is there any way of batch renaming files in sub directories?

For example:

Rename *.html to *.htm in a folder which has directories

15条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 12:03

    If you have forfiles (it comes with Windows XP and 2003 and newer stuff I think) you can run:

    forfiles /S /M *.HTM /C "cmd /c ren @file *.HTML"

提交回复
热议问题