Tag Archives: physical memory

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

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

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”)