On Thu, May 1, 2008 at 11:40 AM, Landon <LandonJCox / gmail.com> wrote:
> Thanks for the info, Park. One of my requirements is that the solution
>  be portable between Ruby and JRuby, which is why I was attempting to
>  do drive detection with File.exists?
>
>  The JRuby guys have had implementing win32ole on their list for about
>  a year:  http://jira.codehaus.org/browse/JRUBY-191 but it hasn't made
>  its way up the priority list high enough to be addressed.
>
>  Anyway, thanks for the win32ole method of doing this - I'm sure that
>  will come in handy.
>
>  On Apr 29, 8:44 pm, Heesob Park <pha... / gmail.com> wrote:
>
>  Try with win32ole:
>
>  ---
>

What versions of Windows and Ruby are you using.  I don't get this
behavior with 1.8.6-p114 on Windows XP.

irb(main):003:0> File.exists?('a:')
=> false
irb(main):004:0> File.exists?('z:') # cd-rom
=> false
irb(main):005:0> File.exists?('s:') # network drive
=> true