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" extensions. There are numerous other files with other extensions that I do not want to be touched, and I want to do it recursively down at least 5 levels.
So far I have:
for /d %%x in (*) do pushd %%x & Ren *.inp *.TXT & popd
...but this only goes down one level of directories.
Can anyone help? Thanks in advance!