- @echo off & setlocal enableDelayedExpansion
- dxdiag /t %TEMP%\temp.txt
- ping 127.1 -n 5 >nul
- for /f "tokens=1,2,* delims=:" %%a in ('findstr /c:"Card name" /c:"Display Memory" "%TEMP%\temp.txt"') do (
- set /a tee+=1
- if !tee! == 1 echo 显卡型号: %%b
- if !tee! == 2 echo 显存大小: %%b
- )
- del /f /q "%TEMP%\temp.txt" 2>nul
- pause
复制代码
|