Opened 9 years ago

Closed 9 years ago

Last modified 11 months ago

#2989 closed Feature Request (Completed)

@OSVersion And Windows 10

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


Been asked to add this so it gets added to Autoit before Windows 10 arrives
Will we be having a reference for Developer Preview as well as Normal Windows 10


Attachments (0)

Change History (8)

comment:1 Changed 9 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 9 years ago by anonymous

also see RtlGetVersion to avoid the requirement of manifestation - as proposed in

comment:3 Changed 9 years ago by anonymous

in the same context it would be nice to introduce a new macro "@OSVersionNT" that returns a numeric value the mirosoft way:
(e.g. windows 2000 = 500; windows xp = 501; windows 7 = 601; windows 8.0 = 602)

comment:4 Changed 9 years ago by BrewManNH

In a follow up to comment #3, why would you want that returned? It's a very untrustworthy way of determining the OS version. Using that you'd never know if you were running Win 7 or Server 2008, for an example, unless you further checked to see if the OS is a server or not.

comment:5 Changed 9 years ago by anonymous

as reply to BrewManNH's question in comment no3:
that's the "microsoft way". the underlying "core" (or kernel) is identical for certain client and server os.
601 = win 7 / 2008 R2; 602 = win 8.0 / 2012.

and that's exactly what we developers are interested in - the underlying "core".

it's the information we need to add in our log files (e.g. "Log("OsVersion: " + @OSVersionNT)" and also the information we may use for conditional code execution (e.g. "If(@OSVersionNT > 603)".

comment:6 Changed 9 years ago by BrewManNH

You could always just run FileGetVersion("Winver.exe") and get the same basic information. On my Windows 7 SP1 system it return 6.1.7600.16385. The 6.1 corresponds to the 601 in the table, the 7600 is the build number.

comment:7 Changed 9 years ago by guinness

  • Resolution set to Completed
  • Status changed from new to closed
  • Version set to

This is set to complete for the part where WIN_10 was added to @OSVersion macro.

Last edited 9 years ago by guinness (previous) (diff)

comment:8 Changed 9 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.