bat读取xml节点

@echo off
rem cd /d C:\Users\jh\Documents\Tencent Files\All Users\QQ\Misc\com.tencent.qqshow\xml8
rem for /f "tokens=3" %%i in ( 'findstr "pose=" 945050118.xml' ) do set "s=%%~i" 
for /f "tokens=3 delims==" %%i in ( 'findstr "pose=" 945050118.xml' ) do set "s=%%~i" 
rem set "s=%s:""="%
set "s=%s:"=%
echo %s%
for  %%j in ( %s% ) do (if %%j==1372009346 echo %%j)



rem for /f "tokens=* delims==" %%i in ('echo 00,11,22') do (
rem set a=%%~i)

rem echo %a%

pause

推荐阅读更多精彩内容