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";
In reply to Re: Anyway to determine path being monitored with Win32::ChangeNotify?
by james28909
in thread Anyway to determine path being monitored with Win32::ChangeNotify?
by PhillyR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |