/ Published in: Windows PowerShell
Expand |
Embed | Plain Text
$Path = "C:\Path\" $HtmlFiles = Get-ChildItem $Path -Filter *.* -Recurse foreach ($file in $HtmlFiles) { Write-Host "Examining" $file (Get-Content $file.FullName) | Foreach-Object {$_\3 -replace "REPLACEME", "NEWCONTENT"} | Set-Content $file.FullName }
You need to login to post a comment.
