Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1720204
  • 博文数量: 171
  • 博客积分: 11553
  • 博客等级: 上将
  • 技术积分: 3986
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-25 20:28
文章分类

全部博文(171)

文章存档

2012年(2)

2011年(70)

2010年(9)

2009年(14)

2008年(76)

分类:

2008-05-24 22:23:11

文件:Win32_VideoController.zip
大小:0KB
下载:下载

'1.显示显卡信息
 On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * from Win32_VideoController")

For Each objItem in colItems
    Wscript.Echo "Name:" & objItem.Name
    Wscript.Echo "DeviceID: " & objItem.DeviceID
    Wscript.Echo "Caption: " & objItem.Caption
    
    Wscript.Echo "CreationClassName; " & objItem.CreationClassName
    Wscript.Echo "AdapterRAM: " & objItem.AdapterRAM
    Wscript.Echo "CurrentBitsPerPixel: " & objItem.CurrentBitsPerPixel
    Wscript.Echo "CurrentHorizontalResolution;: " & objItem.CurrentHorizontalResolution
    Wscript.Echo "CurrentNumberOfColors: " & objItem.CurrentNumberOfColors
    Wscript.Echo "CurrentNumberOfColumns: " & objItem.CurrentNumberOfColumns
    Wscript.Echo "CurrentNumberOfRows: " & objItem.CurrentNumberOfRows
    Wscript.Echo "CurrentRefreshRate: " & objItem.CurrentRefreshRate
    Wscript.Echo "CurrentScanMode: " & objItem.CurrentScanMode
    Wscript.Echo "CurrentVerticalResolution: " & objItem.CurrentVerticalResolution
    Wscript.Echo "DriverDate: " & objItem.DriverDate
    Wscript.Echo "DriverVersion: " & objItem.DriverVersion
    Wscript.Echo "NumberOfColorPlanes: " & objItem.NumberOfColorPlanes
    Wscript.Echo "NumberOfVideoPages: " & objItem.NumberOfVideoPages
    Wscript.Echo "VideoArchitecture: " & objItem.VideoArchitecture
    Wscript.Echo "VideoModeDescription: " & objItem.VideoModeDescription
    
    Wscript.Echo
Next
Wscript.StdIn.Read(1)

阅读(2712) | 评论(0) | 转发(0) |
0

上一篇:获取USB设备信息

下一篇:获取并口信息

给主人留下些什么吧!~~