delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/28/13:50:39

X-Recipient: archive-cygwin AT delorie DOT 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 AT cwilson DOT fastmail DOT 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 AT cygwin DOT com
Subject: Re: Info about OS by command in Cygwin
References: <gobb1o$6li$1 AT ger DOT gmane DOT org> <49A93341 DOT 7040809 AT t-online DOT de>
In-Reply-To: <49A93341.7040809@t-online.de>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019