Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Watching a directory for change

by particle (Vicar)
on Jun 13, 2002 at 12:45 UTC ( #174168=note: print w/replies, xml ) Need Help??


in reply to Watching a driectory for change

you're looking for the Win32::ChangeNotify module. from the doc:

NAME 
Win32::ChangeNotify - Monitor events related to files and directories



--------------------------------------------------------------------------------

SYNOPSIS 
	require Win32::ChangeNotify;


	$notify = Win32::ChangeNotify->new($Path,$WatchSubTree,$Events);
	$notify->wait or warn "Something failed: $!\n";
	# There has been a change.




--------------------------------------------------------------------------------

DESCRIPTION 
This module allows the user to use a Win32 change notification event object from 
Perl. This allows the Perl program to monitor events relating to files and 
directory trees. 

The wait method and wait_all & wait_any functions are inherited from the 
"Win32::IPC" module. 

~Particle *accelerates*

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-03-29 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (72 votes). Check out past polls.

    Notices?