本帖最后由 77七 于 2023-6-16 17:23 编辑
- @echo off
- for /f "delims=" %%a in ('type "清单.txt"') do (
- >"%%a.txt" findstr "%%a" "目标.txt"
- )
- pause
复制代码 代码错误
修改为
- @echo off
- for /f "delims=" %%a in ('type "清单.txt"') do (
- >"%%a.txt" findstr /c:"%%a" "目标.txt"
- )
- pause
复制代码
|