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 -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rails supports system() commands. So if you type: system(''dh''), personally i''d type: system(''dh -h'') for a nicer output :) Cheers Zach Inglis → Blog — http://www.zachinglis.com → Company — http://www.lt3media.com → Portfolio — http://portfolio.zachinglis.com On May 21, 2007, at 6:44 AM, 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 > > -- > Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On May 21, 12:37 pm, Zach Inglis // LT3media <l...-w8tEHcFK2X5Wk0Htik3J/w@public.gmane.org> wrote:> Rails supports system() commands. So if you type: system(''dh''), > personally i''d type: > system(''dh -h'') for a nicer output :)Im assuming you meant ''df'' ... -- A --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---