网络资源的拷贝粘贴 备份参考之用


31 August 2011

powershell script to replace strings in a file

ReplaceStringInFile.bat
----------------
echo off

powershell.exe -command "Get-Content %1 | ForEach-Object {$_ -replace \"%3\", \"%4\"} | Set-Content %2"

timeout 5
----------------
Google