getting the size of memory
getting the size of memory
am 19.02.2008 19:41:33 von Octavian Rasnita
Hi,
Does anyone know how to find the size of the memory of a computer that runs
under Win XP in a perl program?
Is it possible?
Thanks.
Octavian
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: getting the size of memory
am 19.02.2008 19:44:16 von william.hoopes
I'd recommend using WMI.
Google "Scriptomatic" and you should get a download offering from
Microsoft.
It'll provide sample Perl code using Win32::OLE that you can tweak.
-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of
Octavian Rasnita
Sent: Tuesday, February 19, 2008 1:42 PM
To: activeperl@listserv.ActiveState.com
Subject: getting the size of memory
Hi,
Does anyone know how to find the size of the memory of a computer that
runs
under Win XP in a perl program?
Is it possible?
Thanks.
Octavian
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: getting the size of memory
am 20.02.2008 07:40:45 von Bill Luebkert
Octavian Rasnita wrote:
> Hi,
>
> Does anyone know how to find the size of the memory of a computer that runs
> under Win XP in a perl program?
> Is it possible?
You can use WMI to dump out some memory statistics:
Win32_PhysicalMemory
Win32_PhysicalMemoryLocation
Win32_PhysicalMemoryArray
etc
or Win32::API to get GlobalMemoryStatus function.
I'll send code separately.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: getting the size of memory
am 20.02.2008 08:17:51 von Octavian Rasnita
Ok, thank you all for your help.
Octavian
----- Original Message -----
From: "Bill Luebkert"
To: "Octavian Rasnita"
Cc:
Sent: Wednesday, February 20, 2008 8:40 AM
Subject: Re: getting the size of memory
> Octavian Rasnita wrote:
>> Hi,
>>
>> Does anyone know how to find the size of the memory of a computer that
>> runs under Win XP in a perl program?
>> Is it possible?
>
> You can use WMI to dump out some memory statistics:
> Win32_PhysicalMemory
> Win32_PhysicalMemoryLocation
> Win32_PhysicalMemoryArray
> etc
>
> or Win32::API to get GlobalMemoryStatus function.
>
> I'll send code separately.
>
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs