自动化脚本-explorer自动打开U盘批处理文件

@echo off
for /f "skip=1 delims= " %%i in ('wmic logicaldisk where "drivetype=2" get deviceid^|findstr .') do explorer /e,%%i



你可能感兴趣的:(自动查找并打开U盘)