iq301 当前离线
上等兵
@echo off& setlocal enabledelayedexpansion for /f "tokens=2,3,7 delims= " %%a in ('type G:\bat\test\CCLoad.txt') do ( set a=%%a set b=%%b set c=%%c if !b!==RNC01 ( set /a num=0 set /a aa=!num!*100 set /a bb=%%c*100 if !aa! LSS !bb! (set num=!c!echo %num%) ) ) pause复制代码
CrLf 当前离线
论坛巡查
TOP
DAIC 当前离线
中将
apang 当前离线
上将
浪子神剑 当前离线
列兵
@echo off& setlocal enabledelayedexpansion set /a max=0 for /f "tokens=3,7 delims= " %%a in ('type CCLoad.txt') do ( set a=%%a set b=%%b echo !a! !b! set /a bb=!b:^.=! if !bb! geq !max! set /a max=!bb! ) echo !max! pause复制代码
@echo off & setlocal enabledelayedexpansion for /f "tokens=3,7" %%a in ('type CCLoad.txt') do ( if /i "%%a"=="ABC01" ( set "v=%%b" if !v:.^=! GTR !Max! (set Max=!v:.=!) ) ) echo,!Max:~,-2!.!Max:~-2! pause复制代码