No description
Find a file
2023-01-17 16:19:09 -03:00
src added Windows 11 detection 2023-01-13 19:48:25 -03:00
LICENSE Initial commit 2019-10-16 11:02:08 -03:00
README.md fix README.md 2019-10-16 16:45:16 -03:00
winversion.nimble Minimum required version of nim 1.2.0 2023-01-17 16:19:09 -03:00

winversion

This package allows you to determine the running version of the Windows operating system.

The two main features are:

  • get the name of the version of the operating system running;
  • and determine if the running version is equal to or greater than a particular version of Windows.

Works only on Windows operating systems!

Install

Run the Nimble install command

nimble install winversion

Basic usage

import winversion

# Get the name of the version of the operating system running.
let nameOS = getWindowsOS()
echo nameOS

# Determine if running version is equal to or higher than Windows Vista.
if isWindowsVistaOrGreater():
  echo "It's Windows Vista or greater"
else:
  echo "It's not Windows Vista or greater"

# Returns version information about the currently running operating system.
let info = getWindowsVersion()
echo info

# Returns version extended information about the currently running operating system.
let infoEx = getWindowsVersionEx()
echo infoEx