>>>>May be it depends on how cSource and cDestination are defined? In the sample, I tried, I use:
>>>>c:\DataEntry\*.* and c:\MyNewDir It works with the original code. Once I changed my real code to destination equals to the directory name, it also worked...
>>>>
>>>>I have no other ideas...
>>>
>>>According to the error lookup utility that comes with VS, 1223 means that the user canceled the operation.
>>
>>Thanks, George. I can not cancel the operation, since it was not started yet... :) Still, thanks a lot.
>
>Try calling GetLastError() if the return value is non-zero
Thanks, I'll try.
If it's not broken, fix it until it is.
My Blog