@echo off
set n=%computername%
(
setlocal ENABLEDELAYEDEXPANSION
for /f "tokens=1,* delims==" %%a in ('wmic BASEBOARD get Manufacturer^,Product^,Version^,SerialNumber /value') do (
set /a tee+=1
if "!tee!" == "4" echo %n%:%%b
)
) >> k:\%n%.txt
这是老师给的获取主板型号的批处理作者: beyond1994 时间: 2018-5-24 14:17