laoxin 当前离线
列兵
flyinnet9 当前离线
少尉
@echo off setlocal enabledelayedexpansion set /p n=输入数字: (for /f "delims=" %%a in (a.txt) do ( if "%%a"=="END_!n!" set f=1 if defined f exit /b if defined f1 echo.%%a if "%%a"=="START_!n!:" set f1=1 ))>result.txt复制代码
TOP
CrLf 当前离线
论坛巡查
回家路上 当前离线
@echo off setlocal enabledelayedexpansion for /f "tokens=2 delims=:" %%a in (result.txt) do ( for %%b in (%%a) do ( set str=%%b set str=0x!str! set /p =!str!,<nul ) echo. )复制代码
@echo off&setlocal enabledelayedexpansion for /f "tokens=2 delims=:" %%l in (a.txt) do ( for %%i in (%%l) do ( set /a n+=1 set line=!line!,0x%%i ) echo;length=!n!!line! set n=&set line= ) pause & exit /b复制代码