http://qs1969.pair.com?node_id=1107045


in reply to Anyway to determine path being monitored with Win32::ChangeNotify?

my $dir = $ARGV[0]; my $notify = Win32::ChangeNotify->new($dir, 0, 'FILE_NAME LAST_WRITE S +IZE') or die "Unable to create notification for $dir\n";
just run it as script name and the arg will be the dir you want to monitor. what is more interesting than this is getting the names of the files/dirs thats changed :)

Replies are listed 'Best First'.
Re^2: Anyway to determine path being monitored with Win32::ChangeNotify?
by james28909 (Deacon) on Nov 13, 2014 at 05:22 UTC
    derp, completely missed the point of the user changing the name of the dir.