Thanks for the help. I am still getting the following error when a file event occurs. Something changed win32change.rb:11: undefined method `file_name' for #<Array:0x2cab5c8> (NoMethodError) from win32change.rb:9:in `wait' from win32change.rb:9 Here's the script I am using. Luis Daniel Berger wrote: > lrlebron / gmail.com wrote: > > Thanks, > > > > I acutally found out that I had 2 copies of changenotify.so in the ruby > > folder. After deleting the older one it is working. > > > > It works but it exits after a file change. Is it possible to > > continuously monitor the folder? > > Sure thing: > > cn.wait{ |s| > puts "Something changed" > puts "File: " + s.file_name > puts "Action: " + s.action > } while true > > Regards, > > Dan