"Computer" object does not contain ".info" and other objects after Microsoft.VisualBasic.Devices namespace is added to project


#1

Looking to get some basic robot computer stats before a process runs. Using the Microsoft.VisualBasic.Devices namespace I should be able to this (as well as other info) but “My” is not available in the UiPath nor is “Computer.Info

My.Computer.Info.TotalPhysicalMemory

Any ideas?


#2

Hi @bnott,

After adding the Microsoft.VisualBasic.Devices namespace, you can create a variable of type Microsoft.VisualBasic.Devices.Computer and instantiate it with the expression New Computer(). Then, you can access the properties of the created variable like this : myVar.Info.OSFullName for example.

Hope it helps.

Regards.

Masiré.


#3

Yes! That makes total sense now. Thank you for the quick response!