bat-zw
金牌会员
永远的学习者
积分 3105
发帖 1276
注册 2008-3-8
状态 离线
|
『第
2 楼』:
@echo off
for %%i in (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do call :find %%i
goto :eof
:find
if exist %~d1 start %~n1.exe
goto :eof
|
|
huahua0919
银牌会员
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第
3 楼』:
@echo off &&setlocal enabledelayedexpansion
for /f "delims=" %%i in ('fsutil fsinfo drives^|find/v ""') do (
set drive=%%i
set drive=!drive:~-4,2!
for /f "delims=" %%a in ('fsutil fsinfo drivetype !drive! ^|find/v "CD-ROM 驱动器"') do (
set drivetype=%%a
set drivetype=!drivetype:~0,1!
start !drivetype!.exe
)
)
pause 不搜索,不行!
|
|