Maybe somebody knows how to make batch text replace in bunch of vc++ projects.

Maybe somebody knows how to make batch text replace in bunch of vc++ projects.
closed account (z05DSL3A)
Look at PowerShell*, something like:

1
2
3
4
5
6
7
$configFiles = Get-ChildItem C:\Projects *.cpp -rec
foreach ($file in $configFiles)
{
    (Get-Content $file.PSPath) |
    Foreach-Object { $_ -replace "Dev", "Demo" } |
    Set-Content $file.PSPath
}


___________________________________________________
* probably already on your system, PowerShell ISE is good for developing scripts.
Spend some time learning it, well worth the effort.
I don't know why but it just doesn't change anything for me.
closed account (E0p9LyTq)
Grey Wolf wrote:
Look at PowerShell


Visual Studio 2015 Community has the ability to "batch" find/replace, optionally with Regular Expressions, in directories/files anywhere on someone's hard-drive(s).
Topic archived. No new replies allowed.