Another way to find out if a file is in use is to try to rename it to itself, like:
RENAME myfile.dat TO myfile.dat
If VFP returns an error then the file is in use. I use this method when copying customer files from an FTP site by an automated process. Some files are rather large and my automated script runs every 15 minutes. If it can rename the file to itself, then the file is copied. If it can't, then it sleeps for 15 minutes and tries again.
Steve