I am trying to write a catalogging program for a bunch of data we
compile at my work.

I was wondering if there is a way to determine some of the following

CD or DVD?

So do something like
Dir.chdir("D:/")


and then know if I am reading from a CD or DVD. Is this possible?

I would also like to find times and days the files were last altered,
if the media is re-writtable, and how much space is open if it is.

Thank you for any help.