gci C:\Projects *.config -recurse | ForEach { (Get-Content $_ | ForEach {$_ -replace "old", "new"}) | Set-Content $_ }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)