B4J Question How to read detailed hardware/software information from pc?

amorosik

Expert
Licensed User
On Windows systems, with Control Panel/System it is possible to view detailed information on the PC hardware and operating system, for example:
- computer name
- cpu type
- RAM installed
- Product ID
- Device ID
- Windows Edition
- Version
- Installation date
- Build operating system
- Service packs
- Product Key
and many others....

How to detect this information (and potentially many others such as cpu temperature, fan speed, etc.) from B4J code?
 

peacemaker

Expert
Licensed User
Longtime User
Note that OS may be not only Windows.

 
Last edited:
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Note that OS may be not only Windows.


B4X:
Dim os As String = GetSystemProperty("os.name", "").ToLowerCase
    If os.Contains("win") Then
        Return "windows"
    Else If os.Contains("mac") Then
        Return "mac"
    Else
        Return "linux"
    End If
 
Upvote 0

behnam_tr

Active Member
Licensed User
Longtime User
check this
 
Upvote 0
Top