Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Anyway to determine path being monitored with Win32::ChangeNotify?

by james28909 (Deacon)
on Nov 13, 2014 at 02:33 UTC ( [id://1107045]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1107045]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found