xxxxxxxxxx
Get-ChildItem C:\NewFolder -Directory -Recurse | Rename-Item -NewName {$_.Name -replace '_',' '}
xxxxxxxxxx
@echo off
Setlocal enabledelayedexpansion
Set "Pattern= "
Set "Replace=_"
For %%a in (*.exe) Do (
Set "File=%%~a"
Ren "%%a" "!File:%Pattern%=%Replace%!"
)
Pause&Exit