最快速的文件搜索批处理程序! @echo off&setlocal EnableDelayedExpansion&color 1f
echo ::::%date%,%time% 查找结果::::> 查找结果.txt
set/p k=请输入关键字:
for /f "skip=1 tokens=1,2 delims=/" %%i in ('fsutil fsinfo drives^|find /v ""') do (
set drive=%%i
set drive=!drive:~-2!
echo 请稍后正在查找!drive!盘!
dir "!drive!/*!k!*" /b/s/d>>查找结果.txt
cls
type 查找结果.txt
)
start 查找结果.txt
pause
|