
CODE: [Copy to clipboard]@echo off
for /f %%i in ('"wmic logicaldisk where DriveType="2" get DeviceID |find /v "DeviceID""') do set DeviceID=%%i
if %DeviceID%*==A:* set DeviceID=没有发现可移动磁盘
if %DeviceID%*==* set DeviceID=没有发现可移动磁盘
echo %DeviceID%
pause>nul
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |