From: Clement Ow Date: 2008-07-07T16:49:20+09:00 Subject: Re: Counting the files in a directory.... Thufir wrote: > On Sat, 12 Jan 2008 08:54:42 +0900, Siep Korteling wrote: > > >> require 'win32ole' >> fso = WIN32OLE.new("Scripting.FileSystemObject") folder = >> fso.GetFolder("C:/WINDOWS/system32 puts folder.Files.count > > > Oh, that's quite an interesting way to work with files and folders :) > > > -Thufir Yes, indeed, infact it's quite efficient according to the benchmark tests above! By the way, is there like a link or documentation on the list of class/methods that can be used like GetFolder,GetFile.. etc? So far i only know abt these 2 methods.. -- Posted via http://www.ruby-forum.com/.