saogz 当前离线
上等兵
@echo off f: for /f "tokens=1,2 delims==" %%i in (users.txt) do ( findstr /I %%j ssreport.txt >>beiliu.txt ) pause 复制代码
评分人数
CrLf 当前离线
论坛巡查
@echo off (for /f "tokens=1* delims=:" %%a in ('findstr 123 a\*.*') do ( for %%c in ("!tmp!") do ( endlocal if %%c neq %%a echo %%b set tmp=%%a setlocal enabledelayedexpansion ) ))>b.txt复制代码
TOP
tmplinshi 当前离线
版主
@echo off for /f "tokens=1,2 delims==" %%i in (users.txt) do ( findstr /I /c:"%%j" ssreport.txt >.tmp && ( set /p var=<.tmp setlocal enabledelayedexpansion >>beiliu.txt echo,!var! endlocal ) ) del .tmp pause复制代码
canyuexiaolang (vebjbr2wq)当前离线
荣誉版主
>>b.txt findstr "123" a.txt set /p str=<b.txt >b.txt echo %str%复制代码
lxzzr (庄生晓梦)当前离线
@echo off findstr /i /c:"123" "a.txt" >"b.txt" set /p var=<"b.txt" >"b.txt" echo,%var%复制代码
@echo off for /f "delims=" %%a in (' findstr /i /c:"123" "a.txt" ') do ( >"b.txt" echo,%%a goto next ) :next复制代码