The last 2 parameters make it asynchronous. I'm not sure if it can be done in VFP though.
>WIth the aid this function I almost have what I want. The only thing I am having trouble with is this functions waits until some file activity occurs. I have tried to make it asynchronous, but I guess in am not setting the arguments correctly. There are very little in examples on the web that are not written C++. A vb or vfp example would probably help.
>
>
>>ReadDirectoryChangesW Win API function monitors a directory and returns a reason
http://www.news2news.com/vfp/?group=27&function=628
--sb--