I'm trying to extract a version number out of an XML file. The XML file contains as string with:
<!-- Full version -->
<key id="about_fullVersion">10.1.5</key>
Using:
FINDstr /I "about_fullVersion" C:\PLM\Teamcenter10\install\versionlocal.xml >>%logfile%
I can extract the complete line and send it to the log file. How can I strip the version number from this find so that I only send the version# to the logfile ?
I also tried
FOR /f "tokens=*" %%a in ('FINDstr /I "about_fullVersion" C:\PLM\Teamcenter10\install\versionlocal.xml') do (set var=%%a)
echo.%var% >>%logfile%
but it does not parse to the variable.