Set board=wmi.instancesof ("Win32_baseboard")
For each B in board
msg= "Motherboard:" &B.MANUFACTURER&VBTAB&B.PRODUCT&VBTAB&CHR (13)
Next
MSG=MSG&CHR & "---" +CHR (13)
Set cpus=wmi.instancesof ("Win32_Processor")
msg=msg& "CPU Features:" +CHR (13)
For all CPU in CPUs
MSG=MSG+CPU.DEVICEID&VBTAB&CPU.NAME&CHR (13) _
&vbtab&cpu. Socketdesignation&vbtab&cpu. currentclockspeed& "MHz" &vbtab&cpu.l2cachesize& "Kb_l2" &CHR (13)
Next
MSG=MSG&CHR & "---" +CHR (13)
Set mem=wmi.instancesof ("Win32_physicalmemory")
msg=msg& "Memory Capacity:" +CHR (13)
For each m in mem
Msg=msg&m.tag&space (&M.CAPACITY&+CHR) (13)
Next
Set mem=wmi.instancesof ("Win32_ComputerSystem")
For each m in mem
msg=msg& "Total memory Capacity:" &round (m.totalphysicalmemory/1024^2), 2) & "M" +CHR (13)
Next
MSG=MSG&CHR & "---" +CHR (13)
Set display=wmi.instancesof ("Win32_VideoController")
msg=msg& "Display system:" +CHR (13)
For each display
MSG=MSG&VIDEO.DEVICEID&VBTAB&VIDEO.NAME&CHR (13)
Next
MSG=MSG&CHR & "---" +CHR (13)
Set disks=wmi.instancesof ("Win32_DiskDrive")
msg=msg& "Hard disk Capacity:" +CHR (13)
For each D in disks
If Int (d.size/(1024^3)) =0 Then
N=round (d.size/(1024^2), 2) & "M"
Else
N=round (d.size/(1024^3), 2) & "G"
End If
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.