本帖最后由 flashercs 于 2022-1-17 14:27 编辑
- @echo off
- cd /d "%~dp0"
- set searchfile="e:\需查询.txt"
- set outfile="e:\未查询到.txt"
- set tmpfile="%temp%\~%random%~"
- (
- for /r E:\ %%A in (*) do echo %%~nxA
- )>%tmpfile%
- (
- for /f "usebackq delims=" %%A in (%searchfile%) do (
- find /i "%%A" %tmpfile% >nul 2>nul||echo %%A
- )
- )>>%outfile%
- del %tmpfile%
- pause
复制代码 回复 7# 断桥残雪 |