- @echo off
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- for /f "delims=" %%a in ('dir /a-d/b *.txt') do call :loop "%%a"
- echo;%info%
- pause
- exit
- :loop
- set n=0
- for /f "delims=[]" %%b in ('type "%~1"^|find /n "##17"') do set n=%%b
- if %n% equ 0 (goto break)
- set /a m=4+n-1
- for /f "skip=%m% delims=" %%b in ('type "%~1"') do (
- echo;%%b
- goto break
- )
- :break
- exit /b
复制代码
|