Get the Total Installed Physical (Ram) and Virtual Memory in .NET 2008/2010 and Higher

This will work for .NET 2.0, and higher. It uses the MY interface.

'
'Returns the total amount of Physical and Virtual Memory for the Computer.
'
MsgBox(” Total Physical Memory: “ & My.Computer.Info.TotalPhysicalMemory.ToString & ” bytes”)

MsgBox(” Total Virtual Memory: “ & My.Computer.Info.TotalVirtualMemory.ToString & ” bytes”)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.