@echo off
setlocal enabledelayedexpansion
for /f "delims=: tokens=1,*" %%i in ('findstr /n ".*" a.txt') do set %%ivar=%%j
for /f "delims=: tokens=1,*" %%a in ('findstr /n "^abcd" a.txt') do echo %%b&set /a n=%%a-1&echo %!n!var%
pause
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |