From: Siep Korteling Date: 2008-01-15T01:16:59+09:00 Subject: Re: Counting the files in a directory.... Robert Klemme wrote: > > Btw, you did not do the subtraction of two - does GetFolder not return > "." and ".."? > > Kind regards > > robert require 'win32ole' dir = WIN32OLE.new("Scripting.FileSystemObject").GetFolder("C:/ruby/" ) dir.Files.each{|file| puts file.name} # no dots here puts folder.SubFolders.each{|subdir| puts subdir.name} # still no dots I don't now where the dots have gone, but I don't miss them in this context. regards, Siep -- Posted via http://www.ruby-forum.com/.