This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Info about OS by command in Cygwin
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/