is there any windows API or shell API which will give a notification on when a file is added or deleted in a folder
+3
A:
See Directory Management Functions, more specifically FindFirstChangeNotification
.
Anton Gogolev
2009-10-06 06:55:55
A:
Yes, the Win32 API provides the FindFirstChangeNotification function for this.
Greg Hewgill
2009-10-06 06:56:41
+4
A:
FindFirstChangeNotification will notify you when something changes.
ReadDirectoryChangesW can give you the exact details of what changed.
efotinis
2009-10-06 06:58:13
+1
A:
The FindFirstChangeNotification Function is already mentioned. In case you need something more than the win32 API, here is a very good project for watching folders:
CDirectoryChangeWatcher - ReadDirectoryChangesW all wrapped up
Nick D
2009-10-06 07:15:09