
CODE: [Copy to clipboard][ Last edited by huahua0919 on 2008-4-2 at 05:33 PM ]@echo off
for /f "delims=" %%i in ('wmic logicaldisk where "drivetype=3" get deviceid^|more +1') do (
cd /d %%i
for /f "delims=" %%a in ('dir/s/b/ad') do (
set a=%%a
if "!a:~3,8!"=="RTWFGSRY" (echo find in %%i) else (echo nothing everydrivers)
)
)
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |