I've found one or two guides to doing a word search and replace across multiple documents with powershell. They work well on simple documents. However, the script ignores text in headers and footers; and if "track changes" is enabled, it replaces text which has already been replaced, resulting in multiple copies of the new text if I run the script more than once on the same file.

Any clues as to how I can avoid these undesirable behaviors and make this script robust?

link|improve this question
this question might get a better response on stackoverflow.com... – August Jan 11 '11 at 15:35
Good idea, August; done: stackoverflow.com/questions/4659920/…. – user61633 Jan 11 '11 at 16:27
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.