1.

Solve : display how many ram you still have?

Answer»

hey, dus anywhone knows how you display how many ram you still have on your computer in a batch file. My os is WINDOWS xp Professional.

rem voor dutch speakers:
ALS er nederlandstaligen onder jullie zijn, je MAG gerust antwoorden in het nederlands van mij

greetz

Blackberry Not sure about a batch command, but this should set you up:

Code: [Select]
On ERROR Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery _
("Select * from Win32_PhysicalMemoryArray")

For Each objItem in colItems
Wscript.Echo "Physical MEMORY: " & objItem.MaxCapacity/1024 & "MB"
Next


Save file with a VBS extension and run the file from a command prompt.

Good luck. that worked, tnx !


greetz

blackberry



Discussion

No Comment Found