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?
I can't remember (nor find) which library allows you to get the B4J application name at runtime (I would need it to set xui.SetDataFolder dynamically). Is there a way to get all possible keys of GetSystemProperty and GetEnvironmentVariable, i.e. get two Maps? I found Java code for the...
Just a simple trick I use to detect Windows 11 using Shell. This Sub returns True if the version is larger or equals to 22000.493 There is a known bug in JDK to detect Windows 11 version. Public Sub CheckWin11 As ResumableSub Try Dim shl As Shell shl.Initialize("shl", "cmd"...
I can't remember (nor find) which library allows you to get the B4J application name at runtime (I would need it to set xui.SetDataFolder dynamically). Is there a way to get all possible keys of GetSystemProperty and GetEnvironmentVariable, i.e. get two Maps? I found Java code for the...
Just a simple trick I use to detect Windows 11 using Shell. This Sub returns True if the version is larger or equals to 22000.493 There is a known bug in JDK to detect Windows 11 version. Public Sub CheckWin11 As ResumableSub Try Dim shl As Shell shl.Initialize("shl", "cmd"...
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
Get Unique hardware ID in b4j tested on windows only you can test on mac or linux 8 method to get Unique hardware id How Use : Dim pdd As jUUID Log(pdd.Get_CPUID ) Log( pdd.Get_HddID1 ) Log( pdd.Get_HddID2 ) Log( pdd.Get_HddID3 ) Log( pdd.Get_HddID4("C") )...