This code sample calls ReadDirectoryChangesW API function. The VFP application freezes until a file event happens in the directory being watched: Monitoring changes occurring within a directory (Win2K/XP) http://www.news2news.com/vfp/?example=400&function=628