I am looking for a command that returns the available physical memory in Windows. I tried "systeminfo" but it takes too long and returns a lot of unnessesary information for me. If there is not any command for this what would be the best way to obtain it in a different way using command prompt?
It takes some time (around 10 seconds for me) but the following command will do it:
You already know about
JP Software's TCC/LE has the built-in
[C:\]memory 30 % Memory load 3,471,441,920 bytes total physical RAM 2,428,456,960 bytes available physical RAM 5,440,962,560 bytes total page file 4,505,726,976 bytes available page file 2,147,352,576 bytes total virtual RAM 2,053,435,392 bytes available virtual RAM 262,144 characters total alias 262,143 characters free 20,480 characters total history [C:\]
It also has the
[C:\]echo There are %@COMMA[%@WINMEMORY] available bytes physical RAM. There are 2,456,285,184 available bytes physical RAM. [C:\]
Bundled with Windows comes the
msinfo32 /categories +systemsummary
There are a whole load of other utilities, from various people, that can report the same information.
Well if you are on Windows 7, you can use this at the powershell prompt:
Or if you want a nice pretty how many gigs is it:
Or if you are on an older version of windows (or W7 for that matter) at the command prompt:
|show 1 more comment|