How can I get the version of Windows that I am running under Cygwin now?
I support automatic build scripts that run on Mac, Windows, and Linux distributions, and I need to determine which version of Windows it is currently using.
It is desirable that it return the standard name of the Windows release, but some code that I can separate from others will also be great.
What I want to know if I run 7, XP, Server 2008, etc.
Help, ideas?
source
share