Hi,
----- Original Message ----- 
From: "Joel VanderWerf" <vjoel / PATH.Berkeley.EDU>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Tuesday, January 20, 2004 8:29 AM
Subject: detecting Win95/Win98/WinME


>
>
> Some of the File#flock arguments do not work on Win95/Win98/WinME
> (namely LOCK_SH and LOCK_NB), so I'm looking for a way to detect what
> kind of windows the process is running on. RUBY_PLATFORM and rbconfig.rb
> do not seem to help.
>
> Any ideas?
>
>
How about `ver` ?

C:\>irb
irb(main):001:0> `ver`
=> "\nMicrosoft Windows 2000 [Version 5.00.2195]\n"

Regards,
Park Heesob