From: Gordon Thiesfeld Date: 2008-07-05T12:57:02+09:00 Subject: Re: Getting Folder Size On Fri, Jul 4, 2008 at 2:06 AM, Clement Ow wrote: > I have options that has nonrecursive requirements.. There isnt a direct > method at all that calculates DIR size? Hmmmm, I'm using Windows XP Pro, > so dont suppose the Unix command would work. But, If i use Windows > command, would it probable then? > >> require 'win32ole' => true >> fso = WIN32OLE.new('Scripting.FileSystemObject') => # >> folder = fso.GetFolder('C:\ruby\scripts') => # >> folder.name => "scripts" >> folder.size => 226746920 >> folder.path => "C:\\ruby\\scripts" >>