2018-8-7 乱云飞 评论(0) 浏览(1057) 标签: 批处理 可移动磁盘 优盘 内存卡 盘符
@echo off for /f "tokens=2 delims==" %%a in ('wmic LogicalDisk where "DriveType='2'" get DeviceID /value') do ( set DriveU=%%a ) echo.%DriveU% pause