- @echo off
- set /p RiQi=<内盘笔1.txt
- set RiQi=%RiQi:~9,10%
-
- for /l %%n in (1 1 5) do (
- for /f "tokens=1,3" %%a in (内盘笔%%n.txt) do set /a _%%a+=%%b
- )
- for /f "delims=_= tokens=1,2" %%a in ('set _') do (
- >>内盘笔1-5.txt echo %%a %RiQi% %%b
- )
-
- for /l %%n in (6 1 10) do (
- for /f "tokens=1,3" %%a in (内盘笔%%n.txt) do set /a .%%a+=%%b
- )
- for /f "delims=.= tokens=1,2" %%a in ('set .') do (
- >>内盘笔6-10.txt echo %%a %RiQi% %%b
- )
复制代码
|