Registry question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a registry key that I can get the following info from.

Total Physical memory
Free Memeory

How can I get this info?

Thanks;
Steve Christensen
 
Stevec said:
Is there a registry key that I can get the following info from.

Total Physical memory


No registry key is needed. Just right-click on My Computer and choose
Properties. It will show you how much memory you have there.

Free Memeory


That number is normally zero, or close to it, and should not be of any
concern to you. Despite what you may have heard, trying to make that number
bigger is not a worthwhile objective. Windows is designed to use all, or
nearly all, of your memory, all the time, and that's good not bad. Free
memory is wasted memory. You paid for it all and shouldn't want to see any
of it wasted.

Windows works hard to find a use for all the memory you have all the time.
For example if your apps don't need some of it, it will use that part for
caching, then give it back when your apps later need it. In this way Windows
keeps all your memory working for you all the time.
 
Ken;
Thanks for the reply.
I was hoping to use the registry key info in another program
that would display it.
Hence that was why I was looking for it in the registry. I realize that it's
actually a process, but was hoping to capture the info.

Thanks for the reply.
SteveC
 
I cannot find a download for this.

Save the lines below in Notepad.

-------------------below here----------------
'FreeMem.vbs - Bill James
For Each o in GetObject("winmgmts:\\.\root\cimv2")._
ExecQuery("Select FreePhysicalMemory from Win32_OperatingSystem")
WScript.Echo "Free Physical Memory: " & o.FreePhysicalMemory
Next
-------------------abve here----------------

Then save it as FreeMem.vbs

Double clicking FreeMem.vbs will bring up something like this:

---------------------------
Windows Script Host
---------------------------
Free Physical Memory: 173272
---------------------------
OK
---------------------------

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top