首页 > Windows开发 > 详细

Win32_LogicalMemoryConfiguration在win7下无法使用

时间:2019-01-15 11:48:02      阅读:257      评论:0      收藏:0      [点我收藏+]
strComputer = "."

Set objSWbemServices = GetObject("winmgmts:\" & strComputer)
Set colSWbemObjectSet = _
objSWbemServices.InstancesOf("Win32_LogicalMemoryConfiguration")

For Each objSWbemObject In colSWbemObjectSet
Wscript.Echo "Total Physical Memory (kb): " & _
objSWbemObject.TotalPhysicalMemory
Next
这段代码在win7下无法运行报错(null): 0x80041010 在win2003下可以运行,win7下已经取消此类

Win32_LogicalMemoryConfiguration在win7下无法使用

原文:http://blog.51cto.com/4432704/2342798

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!