4

I'm trying to use wmic memlogical in Windows 7 but it says:

memlogical - Alias not found

What's the equivalent command for Windows 7?

migrated from stackoverflow.com Sep 12 '11 at 13:07

This question came from our site for professional and enthusiast programmers.

10

The aliases are a bit different in Windows 7 - memlogical doesn't exist. Here's how to get the same information in Windows 7:

Total Physical Memory

wmic ComputerSystem get TotalPhysicalMemory

Available Physical Memory

wmic OS get FreePhysicalMemory

Virtual Memory Max Size

wmic OS get TotalVirtualMemorySize

Virtual Memory Available

wmic OS get FreeVirtualMemory

You can combine them as follows into one command:

wmic ComputerSystem get TotalPhysicalMemory && wmic OS get FreePhysicalMemory,TotalVirtualMemorySize,FreeVirtualMemory
  • 1
    Thanks for the info, but i wanted it in one command itself.. I also found the solution, which works perfectly for me systeminfo | findstr "Memory" – Abhishek Simon Sep 13 '11 at 7:29
3

I got one working..

systeminfo | findstr "Memory"
  • 1
    systeminfo is bad approach as it output localized according to Windows lang edition... – gavenkoa Sep 17 '11 at 22:49
2

You didn't say, but I'm assuming you're looking for an equivalent wmic command. (Rather than equivalent C function.) This is more of a system administration question rather than a programming question.

The documentation for Win32_LogicalMemoryConfiguration explains where all the pieces of information got moved to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.