回复 1# zhengwei007
批处版本... | @echo off &setlocal enabledelayedexpansion | | (echo,item id,extract id,quantity,chance | | for /f "tokens=1-7 delims= <>= " %%a in ( | | 'findstr /i /c:"item id=" /c:"extract id=" 0.xml' | | ) do if /i "%%a"=="item" (set "h=%%~c") else (set/p="!h!,%%~c,%%~e,"<nul&echo,%%~g))>out.csv | | endlocal&pause&exit/bCOPY |
|