I have the following XML file:
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
</startup>
<appSettings>
<add key="Name1" value="Value1"/>
<add key="Name2" value="Value2"/>
<add key="Name3" value="Value3"/>
</appSettings>
<runtime>
<legacyUnhandledExceptionPolicy enabled="true"/>
</runtime>
</configuration>
I need to replace “Value2” to “ServerName” using Windows Batch file programming.
Could anybody help one as I am new to Windows Batch programming?
Batch will have trouble with <, >, ^ and & characters.
This will work, but a JScript/VBScript script (like is referenced in one of the comments) is a much better solution.
Change “ORIGINAL” to the text being searched for, and “REPLACE” to the new text. I recommend for Windows scripting to learn JScript.