Hi Jignesh, check if these two code samples can help:
Monitoring changes in a directoryhttp://www.news2news.com/vfp/?example=117Windows API functions used:
FindCloseChangeNotification
FindFirstChangeNotification
FindNextChangeNotification
WaitForSingleObject
Monitoring changes occurring within a directory (Win2K/XP)http://www.news2news.com/vfp/?example=400Windows API functions used:
ReadDirectoryChangesW
* * *
As already mentioned in this thread, C++ or .Net solution would probably be more light weight/efficient than a VFP-based utility.
The second example has C++ version that can be used as a starting point for creating a light weight directory monitoring utility.