使用文件之间的差异创建输出[.BAT]

我正在尝试将txt文件中的字符与文件夹中的所有.OK文件进行比较。 到目前为止,可以将它与单个文件进行比较,但我找不到为MULTIPLE文件执行此操作的方法。 有人能帮我吗? 提前致谢!

( for /f "delims=" %%i in (E:\CSV\TEST.txt) do (
    findstr /C:"%%i" "E:\CSV\CSV.OK"  >nul || echo %%i
  )
)>E:\CSV\OUT.csv
采纳答案:
( for /f "delims=" %%i in (E:\CSV\TEST.txt) do (
    findstr /C:"%%i" "E:\CSV\*.OK"  >nul || echo %%i
  )
)>E:\CSV\OUT.csv

应该做你所问的。

现在 - 无论那是你想要的,只有医生知道......

author: magoo

参考更多解答: Create output with differences between files [.BAT] ,转载请保留出处使用文件之间的差异创建输出[.BAT]及作者信息

Statement: We respect knowledge and authors. Since the content comes from the Internet and is intended for scientific research, any reprinters should retain the author's signature and origin. If you are the author of the content and feel in dispute, please contact email: 1076545519@qq.com. We will find out the situation and deal with it in time. We sincerely thank the author for his hard work.


更多:cmd