I'm trying to modify the code below to recursively rename all file types, not just a single type, within all subdirectories:
@echo off
Setlocal enabledelayedexpansion
Set "Pattern=rename"
Set "Replace=reuse"
For %%# in ("C:\Folder\*.jpg") Do (
Set "File=%%~nx#"
Ren "%%#" "!File:%Pattern%=%Replace%!"
)
Pause&Exit
Source: How to rename file by replacing substring using batch in Windows
Any help would be greatly appreciated!