blueskyczg 当前离线
列兵
评分人数
pcl_test 当前离线
荣誉版主
@echo off 2>nul md result for /f "delims=" %%a in ('dir /b *.txt') do call :loop "%%a" pause&exit :loop setlocal enabledelayedexpansion (type %1 for /f "tokens=1* delims=:" %%i in ('findstr /n .* %1') do ( set /a n+=1 echo;%%j if !n! equ 30 goto :eof ))>"result\%~1"复制代码
TOP
xxrs 当前离线
taofan712 当前离线
六级士官
@echo off & setlocal enabledelayedexpansion for /f "skip=29 delims=" %%a in ('dir /b *.txt') do ( set /p thirty=<"%%a" >>"%%a" echo,!thirty! ) echo 完成!2秒关闭 ping 0 -n 3 >nul复制代码
@echo off & setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir /b *.txt') do ( set /p first=<"%%a" >>"%%a" echo,!first! ) echo 完成!2秒关闭 ping 0 -n 3 >nul复制代码