查看全部评分
举报
#include <Constants.au3> Opt("MustDeclareVars",1) _test() Func _test() Local $foo,$line,$lines $foo = Run(@ComSpec & " /c wmic baseboard get product ", @SystemDir, @SW_HIDE, $STDOUT_CHILD) $lines = "" While 1 $line = StdoutRead($foo) If @error Then ExitLoop $lines &= $line Wend MsgBox(0,"test",$lines) EndFunc
$objWMIService = objget("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") $colBoard = $objWMIService.ExecQuery("SELECT * FROM Win32_BaseBoard") For $object in $colBoard $mb=$object.Product Next MsgBox(0,"",$mb)
回复 wwant 戴尔的i915系列 afan 发表于 2009-12-24 14:53
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-26 05:35 , Processed in 0.093506 second(s), 25 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.