Might want to try:

  ...
  mapped_drives = `net use`.chomp.split
  ...

or whatever the ms-windows shell command is that displays what drives
have been mapped on the machine (note that I haven't used ms-windows
in over a decade or so, nor have access to test, ...).

Jeff

On Apr 23, 12:08 am, Murwath Mehtar <[email protected]>
wrote:
> Hi All,
>
> I had been assigned work of ruby on rails from two days . Using ruby on
> rails how do we get the list of drives present in a system ex : c:\ ,
> d:\ etc
>
> If anyone know this pls send me the code.
>
> Thanks & Regards,
> Murwath Ali Mehtar.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to