如上,输出多次,不知道是什么原因,请指教复制代码
- @echo off
- setlocal enabledelayedexpansion
- for /f "delims=" %%i in (a.txt) do (for /f "delims= " %%k in (b.txt) do
- (echo "%%i"|findstr "%%k"
- set a=%%k
- echo !a!>>c.txt))
- pause
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |