/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Hi,

I want to know how much physical memory on a pc but if it had more than 2gb, the value is always 2097151 kb. Any one got a updated script for that ?
Thanks
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
I don't know how to use Call DLL Function but I guess there's a way to get the data with kernel32.dll

http://msdn.microsoft.com/en-us/library/microsoft.smartdevice.connectivity.systeminfo.aspx

function : GlobalMemoryStatusEx
Answered 07/23/2009 by: darkfang
Blue Belt

Please log in to comment
0
Any one got a updated script for that ?WiseScript? VBS? Batch? Python? Kix? Shall I go on?

If it were me, I'd go with a WMI-calling VBScript.
Answered 07/24/2009 by: VBScab
Red Belt

Please log in to comment
0
WiseScript (Topic)
Answered 07/27/2009 by: darkfang
Blue Belt

Please log in to comment
0
Not that I agree with using Wisescripts, but you could use:

Use "Get System Information", retrieve "K Bytes Physical Memory" into a variable.

It's pretty easy to manipulate from there.
Answered 07/27/2009 by: elgwhoppo
Senior Purple Belt

Please log in to comment
0
Already try that and the returning value is always 2097151 when you have more than 2gb of Ram.

Like VBScab said, I found a WMI-calling VBScript, put the value in a file and I use WiseScript to read the value.
Answered 07/28/2009 by: darkfang
Blue Belt

Please log in to comment
0
ORIGINAL: darkfang
Like VBScab said, I found a WMI-calling VBScript, put the value in a file and I use WiseScript to read the value.


You didn't say anything about actually using a VB script until after I posted. Why not just use VB for the entire script? Makes life much easier.
Answered 07/28/2009 by: elgwhoppo
Senior Purple Belt

Please log in to comment
0
I know, it's just that I know nothing about VBScript...
Answered 07/28/2009 by: darkfang
Blue Belt

Please log in to comment