Hi Don,
Temporary remove FOF_NOERRORUI flag from flags you're passing to SHFileOperation so you can see what file causes this error. My guess is that you've one of the files/tables in that folder open exclusively and that causes the error. DISPLAY/LIST STATUS command will show the list of open tables and open files.
>Partial solution Found!
>
>Issuing a CLOSE ALL, closes any files opened with a Low Level File Function, thereby releasing the system file handle(s). Putting CLOSE ALL in my FOR..ENDFOR loop seems to cure the problem.
>
>But this is rather a heavy handed way of doing things. Let's say for example that I have tables or other files open that I want to use. If I could determine the file handle number associated with the Folder3 file name, then I could issue a FCLOSE(lnFileHandleNum); a much more elegant solution.
>
>Do you know how I can retrieve the file handle number of a specific open file?
>
>Thanks
>Don Lowrey
--sb--