返回列表 发帖
本帖最后由 Hello123World 于 2011-6-9 17:01 编辑
@echo off&setlocal enabledelayedexpansion
for /f %%i in (test.txt) do (set /a a=!a!+%%i
set /a b=!b!+1)
set /a c=%a%/%b%
echo %c%
pause>nulCOPY

TOP

返回列表