Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Monitoring a directory/ detecting changes
This article has not been rated yet. After reading, feel free to leave comments and rate it.
The Win32 API provides FindFirstChangeNotification / FindNextChangeNotification (see for details in win32.hlp).
A good solution that works both with Win95 and NT can be found at http://www.rtfm.be/fpiette.
There is a freeware component TDirmon (directory monitor), works perfectly and uses these functions.
A sample program that monitors a directory is provided.
Comments:
|