Set objWMIServices = Getobject("winmgmts:\\localhost\root\cimv2")
Set objWMIInstances = objWMIServices.InstancesOf ("Win32_ComputerSystem")
For Each objWMIInstance In objWMIInstances
msgbox "RAM in GB= " & (objWMIInstance.TotalPhysicalMemory)/1000000000
Next
Set objWMIInstances = Nothing
Set objWMIServices = Nothing
On Tue, May 14, 2013 at 3:52 PM, GOPI <[email protected]> wrote:
> How to get the RAM SIZE of the computer using QTP/VBscript?
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.