Mass rename of file extensions recursively (windows batch)

后端 未结 3 1492
灰色年华
灰色年华 2021-02-02 11:17

I have numerous files in a very complex directory structure, and for reasons not worth discussing I need to rename all files with the extension of \".inp\" to have \".TXT\" exte

3条回答
  •  猫巷女王i
    2021-02-02 11:57

    On Windows 7, the following one-line command works for me, to rename all files, recursively, in *.js to *.txt:

    FOR /R %x IN (*.js) DO ren "%x" *.txt
    

提交回复
热议问题