@echo off
setlocal enabledelayedexpansion
set a=1
for /f "skip=1 tokens=1,2,3" %%1 in ('wmic logicaldisk where DriveType^=3 get DeviceID^,freespace^,size') do (
set n=%%2
set /a g=!n:~-0,-3!/1024/1024!
set n=%%3
set /a t=!n:~-0,-3!/1024/1024!
set "硬盘分区=!硬盘分区!%%1 !t!G余!g!G;"
)
for /f "skip=1 delims=" %%i in ('wmic BaseBoard get Product') do set 主板型号=%%i
for /f "skip=1 delims=" %%i in ('wmic cpu get name') do set CPU型号=%%i
for /f "skip=1 delims=" %%i in ('wmic cpu get socketdesignation') do set CPU插口=%%i
for /f "tokens=1,2 delims==" %%a in ('wmic path Win32_VideoController get AdapterRAM^,Name /value^|findstr "AdapterRAM Name"') do set 显卡型号=%%b