Hello123World 当前离线
荣誉版主
@echo off&SetLocal EnableDelayedExpansion Set n=0 For /f "delims=" %%i in (b.txt) do ( Set a=%%i If "!a:~,2!"=="标题" Set /a n+=1 >>象棋!n!.txt echo %%i) pause复制代码
TOP
FOR 当前离线
中尉
ArdentMan 当前离线
@Echo Off&SetLocal EnableDelayedExpansion For /F "delims=" %%a In (a.txt) Do ( Set "Str=%%a" If "!Str:~,3!" EQU "标题:" Set /A Num+=1 Echo %%a>>Txt_!Num!.txt ) 复制代码
评分人数