From: Joel VanderWerf Date: 2004-01-20T14:01:12+09:00 Subject: Re: detecting Win95/Win98/WinME Phil Tomson wrote: > In article <400C7EF0.2080606@path.berkeley.edu>, > Joel VanderWerf wrote: > >>>irb(main):001:0> `ver` >>>=> "\nMicrosoft Windows 2000 [Version 5.00.2195]\n" >> >>Thanks, that does the trick. > > > Hmmm... but that's not exactly cross-platform. > Is ver available on all flavors of Windows? I've tried it on ME, and Park Heesob tried it on Win2K, so now we know it works on two. Actually, this page suggests that it is standard: http://www.computerhope.com/verhlp.htm But this page is wrong about the output on ME. It says 'Windows ME 4.90.3000', but I got something like 'Windows Millenium ...'. So I'm assuming it could be either. > BTW: you could probably check some section of the Registry, but it's not > very straightforward in my experience. I quail at the thought :(