Hi Donald,
The code was originaly posted by late Ed Rauh. I reposted it with some modifications. Can you copy the folder in question using Windows Explorer?
>Good evening all
>
>I am getting an API Error 6, Handle is Invalid Message during a copy folder operation. But only on the 3rd consecutive copy.
>
>An array holds all of the sub folder names, The copy operation is an SHFileOperation courtesy of code posted by Sergey, converted to myvcx, and using ClassHeap. I use a FOR..ENDFOR to iterate thru the array and pass the folder name and complete path to the class..pretty standard stuff.
>
>In the directory there are three folders. The first two folders copy without error, but the third folder bombs with API Error 6, Invalid File Handle. Each folder contains more than 100 files.
>
>I am in over my head on this one. Any insights would be appreciated.
>
>Thanks
>Don Lowrey
--sb--