
[分享]批處理文件搜索工具
nclick="copycode($('code0'));">復(fù)制代碼
- title 文件搜索工具
- @echo off
- color a
- :start
- cls
- set /p file=輸入要搜索的文件名:
- echo 正在搜索中請(qǐng)稍等......
- for %%a in (c d e f h) do for /f tokens=* %%b in ('dir /s/b/a-d %%a:%file%') do (echo %%b & set data=%%b)
- echo.文件位置:>%systemdrive%搜索結(jié)果.txt
- echo.>>%systemdrive%搜索結(jié)果.txt
- echo.%data%>>%systemdrive%搜索結(jié)果.txt
- start %systemdrive%搜索結(jié)果.txt
- pause
- goto start

