- @echo off
- for /f "tokens=2 delims==" %%a in ('wmic csproduct get Vendor /value ^| findstr /i "Vendor"') do (
- set "Vendor=%%a"
- )
- if /i "%Manufacturer:~0,3%" == "MSI" set Manufacturer=微星
- if /i "%Manufacturer:~0,4%" == "ASUS" set Manufacturer=华硕
- if /i "%Manufacturer:~0,4%" == "TIMI" set Manufacturer=小米
- if /i "%Manufacturer:~0,4%" == "SOYO" set Manufacturer=梅捷
- if /i "%Manufacturer:~0,4%" == "ONDA" set Manufacturer=昂达
- if /i "%Manufacturer:~0,5%" == "SUPOX" set Manufacturer=磐正
- if /i "%Manufacturer:~0,5%" == "PCASL" set Manufacturer=翔升
- if /i "%Manufacturer:~0,5%" == "INTEL" set Manufacturer=英特尔
- if /i "%Manufacturer:~0,6%" == "MAXSUN" set Manufacturer=铭瑄
- if /i "%Manufacturer:~0,6%" == "LENOVO" set Manufacturer=联想
- if /i "%Manufacturer:~0,6%" == "ASROCK" set Manufacturer=华擎
- if /i "%Manufacturer:~0,6%" == "GALAXY" set Manufacturer=影驰
- if /i "%Manufacturer:~0,7%" == "TOSHIBA" set Manufacturer=东芝
- if /i "%Manufacturer:~0,7%" == "BIOSTAR" set Manufacturer=映泰
- if /i "%Manufacturer:~0,8%" == "GIGABYTE" set Manufacturer=技嘉
- if /i "%Manufacturer:~0,8%" == "COLORFUL" set Manufacturer=七彩虹
- if /i "%Manufacturer:~0,8%" == "SAPPHIRE" set Manufacturer=蓝宝石
- if /i "%Manufacturer:~0,8%" == "MECHREVO" set Manufacturer=机械格命
- if /i "%Manufacturer:~0,10%" == "SUPERMICRO" set Manufacturer=超微
- echo %Vendor%
- pause
复制代码 如何显示为这样:
例如:LENOVO(联想)
我是新手,正在学习,请各位大师帮帮忙 |