http://www.perlmonks.org?node_id=963296


in reply to Perl script on windows node

so now you either have to set up the suggested script as a windows service , described in Re: How to install my Perl script as a Window service?, to monitor for the change or have a look at the Win32::ChangeNotify module