Re: how to tell whether current OS is Windows 7?

Drew Adams <[email protected]>
Newsgroups gmane.emacs.windows
Message-ID <e04e8429-8650-4b16-94d2-dd7e807c76f8@default>
> > 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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.