@echo offfor /f "delims=: tokens=1,2*" %%i in ('findstr/n .* a.txt') do if "%%j"=="%computername%" echo 计算机名:%%j,第%%i行pause>nul