@echo off setlocal enabledelayedexpansion

set search_path=

set /p search_path=请输入搜索路径(如D:): if not exist %search_path% ( echo 路径不存在! pause exit )

echo 正在搜索,请稍等...

set count=0

for /r %search_path% %%a in (setup.exe) do ( set /a count+=1 echo 找到第!count!个setup.exe:%%a start %%a )

if !count! equ 0 ( echo 没有找到setup.exe文件! pause exit )

echo 所有setup.exe已运行。 pause exit

批处理搜索并运行setup.exe - 自动安装程序一键启动

原文地址: https://www.cveoy.top/t/topic/m068 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录