How to retrieve available RAM from Windows command line?

前端 未结 11 785
-上瘾入骨i
-上瘾入骨i 2020-12-23 09:44

Is there a command line utility within Windows or third-party program that can retrieve available RAM on a machine? (Since I don\'t believe this can be done in pure JAVA, si

11条回答
  •  失恋的感觉
    2020-12-23 10:40

    Use wmic computersystem get TotalPhysicalMemory. E.g.:

    C:\>wmic computersystem get TotalPhysicalMemory
    TotalPhysicalMemory
    4294500352
    

提交回复
热议问题