ltx1993 当前离线
列兵
GNU 当前离线
上尉
@echo off setlocal enabledelayedexpansion set "DstFolder=结果文件夹" set n=0 if not exist "%DstFolder%\" ( md "%DstFolder%" ) for %%i in (*.txt) do ( set /a n+=1 findstr "XXX" "%%i" > "%DstFolder%\!n!.txt" )复制代码
TOP