墨者革离 当前离线
四级士官
wxcute (冰疼)当前离线
荣誉版主
评分人数
TOP
more 当前离线
技术组成员
@echo off set/p str=<1.txt echo %str% set "dos=" for /f "skip=1 delims=" %%a in (1.txt) do ( if not defined dos ( set dos=god >1.txt echo %%a ) else ( >>1.txt echo %%a ) ) echo.&pause&cls %0复制代码
@echo off set a=list.x set b=listx.x :lp set show= set/p show=<%a% if defined show (echo %show%) else (echo 已经结束&pause&goto :eof) more +1 %a%>%b% set a=%b%&set b=%a% pause goto :lp复制代码
batman 当前离线
考官
@echo off for /f "tokens=1 delims=:" %%i in ('findstr /n .* a.txt') do set "num=%%i" set /a num-=1,n=-1 :begin cls&set /a n+=1 if %n% neq 0 (set "sk=skip=%n%") else (set "sk=") for /f "%sk% delims=" %%i in (a.txt) do echo %%i if %n% neq %num% pause&goto begin pause>nul复制代码
随风 当前离线
echo off for /f "delims=" %%i in (文本1.txt) do ( echo %%i pause ) pause 复制代码