c# File.Delete recovery?
问题 Is there a way to recover file(s) that have been deleted programatically by the File.Delete() method? A program has deleted some files that I need to recover and they do not appear in the recycle bin. 回答1: Nope. File.Delete() calls a hard delete within the API and by-passes the Recycle Bin. You will need to use a file recovery program and hope for the best. For deletion via the Recycle Bin you use the SHFileOperation API as it is part of the shell. If/once you have your files back you might