I'm sure I saw this somewhere, but can't find any reference in the Manual.
Is this actually possible?
eg. 22000.613/21H2
It is currently April 24th, 2024, 11:27 am
Windows OS Version/Build Number
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Windows OS Version/Build Number
It is. Even if not exactly the same, here is a method to get some information. If a substitution is applied, you can filter the returned information, to get exactly what you need.
If you don't know how to write such a substitution, please let me know what exactly you want to get from the returned string.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
OnRefreshAction=[!CommandMeasure "MeasureRun" "Run"]
[Variables]
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=systeminfo | findstr /C:"OS"
State=Hide
OutputType=ANSI
[MeterOSInfo]
Meter=STRING
MeasureName=MeasureRun
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Windows OS Version/Build Number
Code: Select all
[MeasureProductName]
Measure=Plugin
Plugin=RunCommand
OutputType=ANSI
Program=PowerShell
Parameter=(Get-WmiObject -class Win32_OperatingSystem).Caption
Substitute="#CRLF#":""
UpdateDivider=-1
[MeasureDisplayVersion]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=DisplayVersion
UpdateDivider=-1
[MeasureCurrentBuild]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=CurrentBuild
UpdateDivider=-1
[MeasureUBR]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=UBR
UpdateDivider=-1
[MeasureWinBits]
Measure=String
String=%ProgramFiles(x86)%
RegExpSubstitute=1
Substitute="^(.+)$":"64","^$":"32"
UpdateDivider=-1
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Windows OS Version/Build Number
Thanks so much to you both for the help
@JSMorley: I remember now, it was your skin I'd seen that info on!
@JSMorley: I remember now, it was your skin I'd seen that info on!
- MuLab -