Advertisement
Advertisement
| 12.21.2007 at 10:07AM PST, ID: 23038716 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: |
Public Sub PhysicalMemory(pc As String)
On Error Resume Next
Set objWMIService = GetObject("winmgmts:\\" & pc & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_PhysicalMemory", , 48)
For Each objItem In colItems
info.Print objItem.Capacity & "mb"
Next
End Sub
|