Recover deleted data
I used the following C# code to delete a directory:
Can I restore the directory
C:\TC using any kind of softwares? Can I also restore the sub directories?
This question came from our site for professional and enthusiast programmers.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Either that or you could create a duplicate of the directory in a temporary folder, and then only delete the temp directory after the user is 100% sure that's what they want to do.
I am not 100% sure but I think if you delete the files using the proper ShellOperation API call you can then find those files in the bin of Windows, with your code above I guess they are gone forever.
On the other hand if you use any of those third party tools usually called Undelete, you should be able to restore most of them I guess.