返回列表 发帖
本帖最后由 shelluserwlb 于 2014-11-8 12:14 编辑
  1. @echo off
  2. if exist 1.txt del /f 1.txt & if exist 2.txt del /f 2.txt
  3. for %%i in (f:\test1\*.*) do echo %%~nxi>>1.txt
  4. for %%j in (f:\test2\*.*) do echo %%~nxj>>2.txt
  5. findstr /ig:1.txt 2.txt
  6. del 1.txt & del 2.txt
  7. pause>nul
复制代码

TOP

返回列表