- @echo off
- rem 指定待搜索的文件
- set "FileName=QQ.EXE"
- echo 正在搜索,请稍候...
- for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
- if exist %%a:\nul (
- pushd %%a:\
- for /r %%b in ("*%FileName%") do (
- if /i "%%~nxb" equ "%FileName%" (
- set qqpath=%%b
- )
- )
- popd
- )
- )
- start "" "%qqpath%"
- pause
复制代码
|