help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] how to tell whether current OS is Windows 7?


From: Drew Adams
Subject: Re: [h-e-w] how to tell whether current OS is Windows 7?
Date: Tue, 4 Jun 2013 16:55:48 -0700 (PDT)

> > Can one detect, from Emacs Lisp, whether the current Windows version
> > is Windows 7 (or whatever)?  If so, how?
> 
> A quick look suggests that (w32-version) does this.
> Results should be:
>   (5 1 2600) ;; XP
>   (5 2 3790) ;; XP 64bit, Server 2003, Server 2003 R2
>   (6 0 6000) ;; Vista, Server 2008
>   (6 1 7600) ;; Windows 7, Server 2008 R2
>   (6 2 9200) ;; Windows 8, Server 2012
> 
> You can find the major and minor version numbers here:
> http://msdn.microsoft.com/en-
> us/library/windows/desktop/ms724832%28v=vs.85%29.aspx
> 
> For Vista and later the build number changes with service packs etc.

Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]