Windows 批量检测 USB 设备写入速度脚本
setlocal enabledelayedexpansion set 'USB2=20' set 'USB3=30' set 'USBC=40'
for /f 'tokens=1,2' %%a in ('wmic logicaldisk get caption,volumename ^| findstr /i /c:"usb2" /c:"usb3" /c:"usbc"') do ( set 'drive=%%a' set 'label=%%b'
for /f 'tokens=4' %%c in ('winsat disk -drive !drive! -seq -write') do (
set 'speed=%%c'
if !speed! lss !%%b! (
echo !drive! (!label!) fail: write speed !speed! MB/s is lower than required !%%b! MB/s
) else (
echo !drive! (!label!) pass: write speed !speed! MB/s is higher than or equal to required !%%b! MB/s
)
)
)
原文地址: https://www.cveoy.top/t/topic/od08 著作权归作者所有。请勿转载和采集!