Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handle Invalid with SHFileOperation ?? Say What??
Message
 
 
To
05/03/2003 20:00:57
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00761891
Message ID:
00761953
Views:
31
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform