RemoveDirectory failure problem, a great god give directions
Time:11-01
Folder is open, the recursive method under RemoveDirectory failure last error: 145 (183 directory is not empty) cannot create (existing), The key is recursive, folder files have been deleted, made a mistake when Remove the outer layer of the folder, don't understand,
As long as don't open the folder will be fine,
End, I think is the easiest way to how to decide to delete the folder is open ? Prompt the user to turn off the folder first, to avoid this problem (maybe this method is not fundamentally solve the problem)
Ask god to reassure
CodePudding user response:
What is the matter folder is open? Refers to the Windows explorer (explorer. Exe) of a window to open the folder? After the test, this kind of situation is can use RemoveDirectory delete