CODE: [Copy to clipboard]@echo off set t=0 for /F "usebackq eol== tokens=1 delims= " %%a in ("2008-07-31 星期四.txt") do ( set /a t+=%%a ) echo %t%