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