From: "Peña, Botp" Date: 2008-07-07T17:16:33+09:00 Subject: Re: Getting Folder Size From: clement.ow@asia.bnpparibas.com # Thanks for all your input, guys, really helped me alot! I # actually went # along with the WIN32OLE method, which is totally sweet # especially when # you have so many options and lines of code is quite hard to # implement a # recursive just calculate the file size(i also dont want to # compromise on # the efficiency of the script) =) Thanks once again! Really # nice workin # with you guys! =D interesting. imho, i find pure ruby's Find.find faster, more expressive, shorter, and portable, eg, >dirsize =0 >Find.find("c:/ruby187") do |f| dirsize += File.stat(f).size end #=> nil >dirsize #=> 24569727 an added beauty here is that you have granular access to the files. Eg, what if you want to get the total size of all .rb and .dll files? that would be pieceofcake then... kind regards -botp