eg.WindowsVersion¶
-
class
eg.
WindowsVersion
[source]¶ A convenience module for checking the windows version.
In addition to the IsXY() methods, you can use comparison like this:
eg.WindowsVersion OPERATOR "KEY"
OPERATOR
is one of<
,<=
,==
,!=
,>=
,>
KEY
Windows version(s) XP
all of XP32 and XP64 XP32
Windows XP, Windows XP 64-Bit Edition, Windows Tablet PC, Windows Media Center Edition 2002, Windows Media Center Edition 2004, Windows Media Center Edition 2005 XP64
Windows XP Professional x64 Edition, Windows Server 2003, Windows Server 2003 R2 Vista
Windows Vista, Windows Server 2008 7
Windows 7, Windows Server 2008 R2 8
all of 80 and 81 80
Windows 8, Windows Server 2012, Windows RT 81
Windows 8.1, Windows 2012 R2, Windows RT 8.1 10
Windows 10, Windows Server 2016 -
static
GetVersion
()[source]¶ Return the major and minor version number of the installed Windows.
Return type: list Returns: [major, minor]
-
static
Is10
()[source]¶ Checks if installed Windows version is one of:
- Windows 10
- Windows Server 2016
Return type: bool
-
static
Is7
()[source]¶ Checks if installed Windows version is one of:
- Windows 7
- Windows Server 2008 R2
Return type: bool
-
static
Is8
()[source]¶ Checks if installed Windows version is one of:
- Windows 8
- Windows 8.1
- Windows Server 2012
- Windows 2012 R2
- Windows RT
- Windows RT 8.1
Return type: bool
-
static
Is80
()[source]¶ Checks if installed Windows version is one of:
- Windows 8
- Windows Server 2012
- Windows RT
Return type: bool
-
static
Is81
()[source]¶ Checks if installed Windows version is one of:
- Windows 8.1
- Windows 2012 R2
- Windows RT 8.1
Return type: bool
-
static
IsVista
()[source]¶ Checks if installed Windows version is one of:
- Windows Vista
- Windows Server 2008
Return type: bool
-
static
IsXP
()[source]¶ Checks if installed Windows version is one of:
- Windows XP x86
- Windows XP x64
- Windows Server 2003
- Windows 2003 R2
- Windows Tablet PC
- Windows Media Center Edition 2002
- Windows Media Center Edition 2004
- Windows Media Center Edition 2005
Return type: bool
-
static