Their is also Win32::ChangeNotify which will help you if you invert your logic.
jdtoronto
In reply to Re: alarm function by jdtoronto in thread alarm function by mantra2006