pdp320921 当前离线
一级士官
for /r %userprofile%\desktop %a in (.\Test) do @if exist "%a\setup.exe" cd %a && start %a\setup.exe复制代码
CrLf 当前离线
论坛巡查
@echo off cd /d "桌面路径" path Test;Test_v3.48 for %%a in (setup.exe) do start "" "%%~f$path:a" pause复制代码
TOP
tmplinshi 当前离线
版主
for /r "%userprofile%\desktop\Test" %a in (setup.exe?) do @start "" "%a" & exit复制代码
for /r %userprofile%\desktop %a in (.\Test,.\Test_v3.48) do @if exist "%a\setup.exe" cd %a && start %a\setup.exe复制代码
cd /d "%userprofile%\desktop" & for /f "delims=" %a in ('dir /s/b/a:-d "Test\setup.exe" "Test_v3.48\setup.exe"') do @start "" "%a" & exit复制代码