- @echo off&setlocal enabledelayedexpansion
- for /f "tokens=1* delims=:" %%a in ('findstr /n .* t.txt') do (
- if "%%b" equ "" (
- for /l %%c in (!min!,1,!max!) do echo !_%%c!
- set "min="&pause
- ) else (
- if not defined min set /a min=%%a
- set "_%%a=%%b&set /a max=%%a
- )
- )
- for /l %%a in (%min%,1,%max%) do echo !_%%a!
- pause
复制代码
|