- I have been searching for an hour with no luck
 - My boss wants it to be a batch file
 
I have a xml file that contains the following.
    <?xml version="1.0"?>
    <profiledoc default="*** Last Run ***">
    <profile name="*** Last Run ***" >
    <workingdir>c:\proj</workingdir>
    <somestuff>none</somestuff>
    <smpnumprocs>4</smpnumprocs>
    <otherstuff></otherstuff>
    <llama>FLUFFY</llama>
    <language>en-us</language>
    <customexe></customexe>
    <addlparams></addlparams>
    <graphicsdevice>win32</graphicsdevice>
    </profile>
    </profiledoc>
We want to set <smpnumprocs>4</smpnumprocs> (which is the number of processors used) to 2
therefore, the line should look like this <smpnumprocs>2</smpnumprocs>
I figured out how to get to the value I want with this
FOR /f "tokens=3 delims=><  " %%a IN ('TYPE %LOCAL_FILE% ^| FIND "<smpnumprocs>"') DO SET NUM_PROCS=%%a
Now how do I change the value?