Get amount of RAM

Multimedia Builder (Legacy Forum)
Post Reply
Nigg
Posts: 57
Joined: Thu Apr 14, 2011 2:10 pm

Get amount of RAM

Post by Nigg »

Hello everybody,

is anyone aware of a possibility or is there a plugin to query the maximum available RAM in the system?

like:

Code: Select all

wmic computersystem get TotalPhysicalMemory

dgilmour
Posts: 531
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: Get amount of RAM

Post by dgilmour »

Try this

Code: Select all

tmp$ = '<Temp>tmemtmp.txt'
param$ = 'WAIT,HIDE /c wmic computersystem get TotalPhysicalMemory |more >"' + tmp$ + '"'
Run("cmd","param$")
mem$ = StrFromFile(tmp$,2,1)
param$ = 'WAIT,HIDE /c del /f /q "' + tmp$ + '"'
Run("cmd","param$")
Message("","mem$")
or use this plugin by toizy:
http://mmbuilder.ru/load/0-0-0-525-20

Nigg
Posts: 57
Joined: Thu Apr 14, 2011 2:10 pm

Re: Get amount of RAM

Post by Nigg »

Thanks a lot dgilmour for your help (once again :)

At first I also had the reading of a file in mind, but the plugin seems to work (still) quite well

Post Reply