in reply to Anyway to determine path being monitored with Win32::ChangeNotify?
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 :)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";
|
---|
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 |
In Section
Seekers of Perl Wisdom