Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 17589, Directory monitor

by Peter Morris Email: Anonymous


Monitors a list of directories and tells you when files in them are added/deleted/modified.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 6.0 1333 downloads
Copyright: Open Source or other


Size: 5,233 bytes
Updated on Tue, 05 Mar 2002 05:14:39 GMT
Originally uploaded on Fri, 01 Mar 2002 12:58:59 GMT
SHA1 Hash: 802DCE2324A62B107C247462DBE991F41BAC4A5C
MD5 Hash: C31F7A7E3FD4905BF51DF511A23C8876

    Explore the files in this upload

Description
Not the prettiest entry GUI wise, but probably one of the most likely entries to make it in to one of your applications :-)

Many people use a TTimer or some other similar "constantly checking" method to determine if a file has been inserted /
deleted within a specified folder. This method is a waste of system resources.

The method I demonstrate is to wait for a Windows-triggered event to occur, to ensure the app doesn't hang while waiting the
event-waiting is done within a thread.

Click the "Monitor a new directory" button to monitor as many paths as you like, and then try deleting files / adding files within
those folders.

For the best result, move a file from one monitored path to another.

Contest entry forMultithreaded programming

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03