批处理脚本:搜索并运行任意磁盘下的 setup.exe
@echo off set /p disk=请输入要搜索的磁盘(如 C:): echo 正在搜索,请稍候... dir /s /b %disk%\setup.exe > search.txt if %errorlevel%==0 ( echo 找到了 setup.exe,正在运行... for /f %%i in (search.txt) do ( start "" '%%i' ) else ( echo 没有找到 setup.exe。 ) del search.txt pause>nul
原文地址: https://www.cveoy.top/t/topic/m07x 著作权归作者所有。请勿转载和采集!