liumtz 当前离线
上等兵
for /f "tokens=1-4" %%a in ('fsutil fsinfo drives^|find "驱动器"') do ( echo [%%a] echo [%%b] echo [%%c] echo [%%d] ) pause复制代码
pcl_test 当前离线
荣誉版主
TOP
@echo off set "drives=C D E F G H I J K L M N O P Q R S T U V W X Y Z" for %%a in (%drives%) do ( for /f "tokens=1" %%i in ('fsutil fsinfo drivetype %%a:^|find "固定"^|^|fsutil fsinfo drivetype %%a:^|find "可移动"') do ( echo [%%i] )) pause复制代码