Seems simple, but Windows considers source and destination as same filename and it’s not easy …
for /r %D in (.) do @for /f "eol=: delims=" %F in ('dir /l/b/a-d "%D"') do @ren "%D\%F" "%F"
Comments are closed.