Hello123World 当前离线
荣誉版主
@echo off set n=0 :hello set /a n=%n%+2 for /f "skip=%n%" %%i in (hello.txt) do (echo %%i >>good.txt & goto hello) pause复制代码
@echo off&setlocal enabledelayedexpansion set n=0 :hello set /a n=!n!+2 for /f "skip=!n!" %%i in (hello.txt) do (echo %%i >>good.txt & goto hello) pause复制代码
评分人数
namejm (闭关中)当前离线
批处理代码写手
TOP
@echo off set n=1 :hello for /f "skip=%n%" %%i in (hello.txt) do (echo %%i >>good.txt &set /a n=%n%+2& goto hello) pause复制代码
hanyeguxing (寒夜孤星)当前离线