X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49A98766.3060601@cwilson.fastmail.fm>
Date: Sat, 28 Feb 2009 13:50:14 -0500
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Info about OS by command in Cygwin
References: <gobb1o$6li$1@ger.gmane.org> <49A93341.7040809@t-online.de>
In-Reply-To: <49A93341.7040809@t-online.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christian Franke wrote:
'uname' and '/proc/version' show the Windows version number
> (NT-5.0=2000, 5.1=XP, 5.2=2003, 6.0=Vista) but not the SP version. The
> 'ver' is a cmd.exe builtin command and can also be run from bash:

Also, /usr/lib/csih/winProductName.exe (Note that this is technically a
native, not cygwin, application, so you need to strip '\r' from the
result if you're using it in a script).

I probably need to update it to recognize the new Windows 7 codes...

--
Chuck



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

