日期:2014-05-17 浏览次数:21022 次
@echo off more +3 "%~0">tmp.bat tmp.bat>computerinfo.txt @echo off&setlocal enabledelayedexpansion echo -------- 主板 --------&echo. set fs="Manufacturer Product Version SerialNumber" for /f "tokens=1,2 delims==" %%a in ('wmic BASEBOARD get /value^|findstr /ib !fs!') do ( set tmp=%%a set tmp=!tmp:Manufacturer=制造商! set tmp=!tmp:Product=型 号! set tmp=!tmp:SerialNumber=序列号! set tmp=!tmp:Version=版 本! echo !tmp! = %%b ) echo.&echo. echo -------- BIOS --------&echo. set fs="CurrentLanguage Manufacturer SMBIOSBIOSVersion SMBIOSMajorVersion SMBIOSMinorVersion ReleaseDate" for /f "tokens=1,2 delims==" %%a in ('wmic BIOS get /value^|findstr /ib !fs!') do ( set tmp=%%a set tmp=!tmp:CurrentLanguage=当前语言! set tmp=!tmp:Manufacturer=制 造 商! set tmp=!tmp:ReleaseDate=发行日期! set tmp=!tmp:SMBIOSBIOSVersion=版 本! set tmp=!tmp:SMBIOSMajorVersion=主 版 本! set tmp=!tmp:SMBIOSMinorVersion=次 版 本! echo !tmp! = %%b ) echo.&echo.
------解决方案--------------------