How can I get the windows version I am currently running under Cygwin?
I am maintaining a automatic build script that is running on Mac, Windows and Linux distributions and I need to be able to detect what Windows version it is currently running under.
Preferably I could have it return the standard Windows release name but some kind of code that I can separate from the other ones would also be great.
What I want to know is if I am running 7, XP, Server 2008 and so on.
Help, Ideas?
Like this: