As noted in my contents, those are 2 single quotes in the $find and $replace strings, not double quotes. After I posted I saw how it looked so adding this comment ... Same thing goes for further down in the post
The following code doesn't error, but also doesn't update the matching string in the XML files. I'm treating it just like a text file since code to parse it as an XML file failed. I'd like to just get this working as it can be used for more than just XML files.
$files = Get-ChildItem -Recurse...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.