Thursday, September 10, 2015

Rename Files in Windows Sub-Directories

Windows command prompt: (If inside a batch file, change %x to %%x)
for /r %x in (*.html) do ren "%x" *.htm

This also works for renaming the middle of the files
for /r %x in (website*.html) do ren "%x" site*.htm

No comments:

Post a Comment