
CODE: [Copy to clipboard][ Last edited by yishanju on 2009-3-13 at 13:00 ]@echo off
type info.xml>1.txt
fr -rnnlic:".*name=\"click\">([0-9]*)\</item\>.*" -t:"\1" 1.txt
set /p click=<1.txt
echo 点击数%click%
pause
CODE: [Copy to clipboard][ Last edited by netbenton on 2009-3-14 at 13:38 ]@echo off
for /f %%a in ('dir /b /s /a "*.xml"') do (
for /f "delims=" %%b in (%%a) do (set str=%%b&call :sub)
)
pause
goto :eof
:sub
set "str=%str:*"click"=%"
for /f "tokens=1 delims=><" %%c in ('echo.%str%') do (echo %%c)
goto :eof
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |