From: jazzez ravi Date: 2009-03-30T13:09:00+09:00 Subject: Re: Is there a ruby way to get the disk size of a directory? Juan Zanos wrote: > I was wondering if there was something to du -h? > > Juan Hi Zanos, Code: puts files = `cd`,`dir /s` Output: C:\raveendran\File_concept Volume in drive C has no label. Volume Serial Number is F40B-0762 Directory of C:\raveendran\File_concept 12/26/2008 05:14 PM . 12/26/2008 05:14 PM .. 05/12/2008 10:43 AM 211 filerite.rb 03/30/2009 09:37 AM 298 filesize.rb 12/22/2008 05:57 PM 239 file_last_line.rb 07/17/2008 12:12 PM 139 findfile.rb 08/08/2008 12:44 PM 225 folder.rb 5 File(s) 1,112 bytes Total Files Listed: 5 File(s) 1,112 bytes 2 Dir(s) 9,278,435,328 bytes free Let me know you expecting this or not ? Regards, P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.