On 2002.08.22, Kontra, Gergely <kgergely / mlabdial.hit.bme.hu> wrote:
> >> Is there a way to find out the OS version from ruby?
> >The above applies to *nix only.  I don't how to do it in Windows.
> Well, the only thing I need it for is to detect windows :)

You could test for ENV["windir"] or ENV["COMSPEC"] on Win98, at least.

Not sure about WinNT or Win2K.

-- Dossy

-- 
Dossy Shiobara                       mail: dossy / panoptic.com 
Panoptic Computer Network             web: http://www.panoptic.com/ 
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)