Tag Archives: Memory

Get Free/Available Physical and Virtual Memory in VB 2008, VB 2010, and Higher

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
 

This will get the TOTAL amount of Free Physical Ram (Available Memory) and how much Free Virtual Memory is available. Uses the MY. interface added in VB.NET 2005.

        '
        'Get the amount of Physical and Virtual Memory that is available.
        '
        MsgBox(" Available Physical Memory: " & My.Computer.Info.AvailablePhysicalMemory.ToString & " bytes")

        MsgBox(" Available Virtual Memory: " & My.Computer.Info.AvailableVirtualMemory.ToString & " bytes")

 

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