Joel Pearson wrote in post #1094397:
> Ok, try **/*.*


Perfect! Thanks for your help.

C:\>irb
irb(main):001:0> Dir.chdir('C:/Documents and Settings/rakshiar/My 
Documents/us>
=> 0
irb(main):002:0> Dir.pwd
=> "C:/Documents and Settings/rakshiar/My Documents/userdata/Ruby"
irb(main):003:0> Dir.glob('**/*.*')
=> ["Books/Beginning Ruby.pdf", "Books/Russ Olsen Eloquent Ruby.pdf", 
"Books/Tes
t.txt", "Scripts/downloadv3.rb", "Scripts/FileNamerenaming.rb"]
irb(main):004:0>

-- 
Posted via http://www.ruby-forum.com/.