Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Watching a directory for change

by particle (Vicar)
on Jun 13, 2002 at 12:45 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found