Jaruzel.com

Get the Amount of Free Physical and Virtual Memory


'
'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")

'
'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")