Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Files using ShFileOperation
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00727693
Message ID:
00728636
Views:
35
>>>>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

It returns 127 ("The specified procedure could not be found."), if I call it with MyDir\*.* It also shows an error dialog...

BTW, how can I expand Error Message myself in code, without using Error lookup utility?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform