wy357251 当前离线
列兵
ShowCode 当前离线
VIP1
@echo off cd /d "%~dp0" for /f "delims=" %%i in ('dir /b /a-d /od *.ppt') do ( set "MyFile=%%i" ) start "" "%MyFile%"复制代码
TOP
aloha20200628 当前在线
上尉
@echo off &dir /b/a-d/tw/o-d *.ppt>"0.tmp" &set/p pptF=<"0.tmp" &del "0.tmp" start "" "%pptF%"&exit/b复制代码
@echo off &for /f "delims=" %%F in ('dir /b/a-d/tw/o-d *.ppt') do (start "" "%%~F" &exit/b)复制代码