I'm trying to replace a value wich is in a Filename.cfg wirch look like this :
Code: Select all
<config>
<bool name="audio.bgmusic" value="false" />
<bool name="global.achievements" value="true" />
<string name="SystemsAuto" value="" />
<string name="FolderViewMode" value="always" />
<string name="Hiddenfeatures" value="freaky bird;super;beautiful;great;always joyfull" />
<string name="Console Retro.ShowFlags" value="auto" />
<string name="GamelistViewStyle" value="HCoinSpin" />
</config>
I have tried with Jrepl :
Code: Select all
setlocal enableDelayedExpansion
set "newValue=myNewValue"
type "settings.cfg"|jrepl "(<string name="Hiddenfeatures" value=").*(" />)" "$1!newValue!$2" >fileName.cgf.new
REM move /y "fileName.cgf.new" "fileName.xml"
Thanks in advance if you can help !