Retrieve Win 11 build number

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
JnLlnd
Posts: 490
Joined: 29 Sep 2013, 21:29
Location: Montreal, Quebec, Canada
Contact:

Retrieve Win 11 build number

27 Oct 2022, 15:34

The latest Win 11 release has the build number 22621.675 (code name "Moments 1"). AHK built-in variable only returns: 10.0.22621. The .675 is missing. The DllCall GetVersionExW also returns only 22621 as build number.

This build number is the only way to identify this release that includes an important change: Windows File Explorer with tabs (as discussed here).

Any idea how to get more detailed build number?
:thumbup: Author of freeware Quick Access Popup, the powerful Windows folders, apps and documents launcher!
:P Now working on Quick Clipboard Editor
:ugeek: The Automator's Courses on AutoHotkey
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: Retrieve Win 11 build number

27 Oct 2022, 22:46

Code: Select all

FileGetVersion v, %A_WinDir%\explorer.exe
MsgBox % v
It's not necessarily the Windows build number, but maybe it will tell you what you want to know.
User avatar
JnLlnd
Posts: 490
Joined: 29 Sep 2013, 21:29
Location: Montreal, Quebec, Canada
Contact:

Re: Retrieve Win 11 build number

27 Oct 2022, 23:45

lexikos wrote:
27 Oct 2022, 22:46
It's not necessarily the Windows build number, but maybe it will tell you what you want to know.
Yes. It returns 10.0.22621.755 for the latest Win 11 build. Thanks!
:thumbup: Author of freeware Quick Access Popup, the powerful Windows folders, apps and documents launcher!
:P Now working on Quick Clipboard Editor
:ugeek: The Automator's Courses on AutoHotkey

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], peter_ahk, Rauvagol and 335 guests