Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Monitoring
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01287897
Message ID:
01289265
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Hi Jignesh, check if these two code samples can help:

Monitoring changes in a directory
http://www.news2news.com/vfp/?example=117

Windows API functions used:
FindCloseChangeNotification
FindFirstChangeNotification
FindNextChangeNotification
WaitForSingleObject

Monitoring changes occurring within a directory (Win2K/XP)
http://www.news2news.com/vfp/?example=400

Windows 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform