How to get the disk space details

Mallikarjun Mongolla wrote:

Hi,
For my application, i want to now the size of the disks. ex(c:\ or d:\).
can any one help me to get the disk space used and disk space remaining
in C: drive

Thanks in advance

mallikarjun
  
Do you want to do this on the server or the client? If you want your web application running on the server to find the amount of free space on the client's machine, I don't think it can be done from a server side script. You will need some thing like a Java applet to do this.

On the other hand, if you want to find the amount of space on the server, Google turned up this:
http://www.deheus.net/petrik/blog/post/98/ [for Mac]
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/95197 [for Windows]

Cheers
Mohit.