Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

3 Answers 3

up vote 7 down vote accepted

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
share|improve this answer
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
    
Edited my answer - you can grab all of those from one command. –  8088 Sep 13 '11 at 8:58
    
Wow! Thanks @Gareth –  Abhishek Simon Sep 14 '11 at 6:24

I got one working..

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

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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