From: Siep Korteling Date: 2008-01-12T09:03:28+09:00 Subject: Re: Counting the files in a directory.... > regards, > > Siep Should be read as: > require 'win32ole' > fso = WIN32OLE.new("Scripting.FileSystemObject") > folder = fso.GetFolder("C:/WINDOWS/system32") > puts folder.Files.count -- Posted via http://www.ruby-forum.com/.