For rename all files in selected directory and all it's subdirectories run command on Wondpws OS in PowerShell
Get-ChildItem -File -Recurse | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace("substring_to_replace","replace_to_this_string")}
For example filename Any_substring_to_replace.pdf will be replaced to Any_replace_to_this_string.pdf