请将要阅读的文本拖放到批上:- @echo off
- if "%~1" equ "" exit
- for /f "tokens=1* delims=:" %%a in ('findstr /n .* "%~1"') do (
- set "str=%%b"
- setlocal enabledelayedexpansion
- if defined str (
- call :lp
- ) else (
- echo,
- )
- for /l %%a in (1,1,1000) do echo,>nul
- endlocal
- )
- pause>nul&exit
- :lp
- set /p= !str:~,1!<nul
- set "str=!str:~1!"
- for /l %%a in (1,1,500) do echo,>nul
- if defined str goto lp
- echo,
复制代码
|