I have been searching to find a vb script which will allow me to essentially do a find/replace on a file (xml)
I've come across a lot of documentation, but i'm piecing things together as there seems to be nothing like this on google, etc.
Here is a link with lots of info, but none really useful:
Can somebody point me into the right direction?
Dim FileName, Find, ReplaceWith, FileContents, dFileContents
Find = WScript.Arguments(server1)
ReplaceWith = WScript.Arguments(server2)
FileName = WScript.Arguments(figgy.xml)
'Read source text file
FileContents = GetFile(FileName)
'replace all string In the source file
dFileContents = replace(FileContents, Find, ReplaceWith, 1, -1, 1)