/build/static/layout/Breadcrumb_cap_w.png

WiseScript - Get System Information - help

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   [ + ] Show comments

Answers (7)

Posted by: darkfang 15 years ago
Blue Belt
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
Posted by: anonymous_9363 15 years ago
Red Belt
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.
Posted by: darkfang 15 years ago
Blue Belt
0
WiseScript (Topic)
Posted by: elgwhoppo 15 years ago
Senior Purple Belt
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.
Posted by: darkfang 15 years ago
Blue Belt
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.
Posted by: elgwhoppo 15 years ago
Senior Purple Belt
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.
Posted by: darkfang 15 years ago
Blue Belt
0
I know, it's just that I know nothing about VBScript...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ