-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 20 January 2006 04:47, ruby talk wrote:
> Is there a way in ruby with out extra libraries to get a list of drives?
> hard drives, dvd drives, network drives, ...?
>
> Becker

For Unix/Linux/MacOSX it would be rather easy, just run `mount` and parse the 
output.

For Windows, you may just test every unit A: to Z:. You'll need to access the 
Win32 API to look for volumes without an assigned mount point (unit letter), 
such as SAN mounted volumes. 

I don't know how to do it in Mac OS Classic, I never used those versions of 
Mac OS.

- -- 
Pau Garcia i Quiles
http://www.elpauer.org
(En general no puedo contestar antes de 10 días)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFD07h3/DzYv9iGJzsRAij+AKDLue7QnBIR0XjjEjHA3/BhclWKMQCeNMZ+
XH3pA57PL6QAipj5yGPbjcA=
=iKiS
-----END PGP SIGNATURE-----