'Is there a way to change FieldCodes values in multiple RTF documents using powershell
Currently our RTF contains { INCLUDETEXT "fileSign02.rtf" * MERGEFORMAT } want to replace it with { INCLUDETEXT "fileSign02.rtf" } is there anyway can be handled in batch for all RTF files
Solution 1:[1]
You may need to add a filter to get-childitem depending on your requiements.
get-childitem c:\your_rtf_folder | %{(get-content $_.Fullname) -replace "\* MERGEFORMAT","" | set-content $_.Fullname}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mike Anthony |
