Public Function ProcessorSpeed() As String '取得电脑CPU的名称及速度 Dim MyOBJ As Object Dim cpu As Object Set MyOBJ = GetObject("WinMgmts:").instancesof("Win32_Processor") For Each cpu In MyOBJ ProcessorSpeed = cpu.Name & " " & cpu.CurrentClockSpeed & " Mhz" Next End Function |
|站长邮箱|小黑屋|手机版|Office中国/Access中国
( 粤ICP备10043721号-1 )
GMT+8, 2025-4-4 05:13 , Processed in 0.057221 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.