@echo off&color 0a
set /p ff=输入文件名:
title 查找 %ff%
echo.&set/p=正在查找 <nul
for %%i in (c d e f g h)do (
if exist %%i:\ (
cd/d %%i:\
set/p=%%i: <nul
for /f "delims=" %%j in ('dir/b/a-d/s "%ff%" 2^>nul')do (
echo.&echo 在%%~fj找到%ff%,准备删除它,并退出本批处理...
ping -n 3 127.1>nul
del "%%j" &exit/b
)))
echo/&echo 未发现 %ff% 按任意键退出...
pause>nul