Project

General

Profile

$os » History » Revision 4

Revision 3 (Per Amundsen, 02/18/2022 02:36 AM) → Revision 4/5 (Per Amundsen, 02/23/2023 06:41 PM)

_Added in 1.9.0_ 

 *$os* 

 Returns the version number of the operating system. 

 _The reply can be XP, 2003, 2003R2, Vista, 2008, 7, 2008R2, 8, 2012, 8.1, 2012R2, 2016, 10 0r 11._ 

 *Properties* 

 table(ktable). 
 |*Property*|*Description*| 
 | .major | - Returns the os major version. (returns wrong in windows 11) | 
 | .minor | - Returns the os minor version. | 
 | .build | - Returns the os build number. | 
 | .platform | - Returns the os platform. | 
 | .type | - Returns the os type. | 
 | .spmajor | - Returns the os service pack major version. | 
 | .spminor | - Returns the os service pack minor version. | 
 | .suite | - Returns the os suite. |