Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to recover deleted file using vb.net
Posted
Comments
[no name] 26-Jul-13 9:10am    
http://www.bing.com/search?q=how+to+recover+deleted+file+using+vb.net gives you a couple of options.
ZurdoDev 26-Jul-13 9:11am    
You should be a tool that can do it. I am not sure VB.Net can do that.

Something like this used to be trivial in the old file allocation table (FAT) system; I've done it. With the NT file system (NTFS) format, however, unplanned file recovery is essentially impossible if the file has actually been deleted. To my knowledge, there is no managed code for even retrieving a file out of the trash, although I suspect you could cobble something together with the COM API.

If you need to target a non-Windows environment, then all bets are off. Apple, Linux and other OSes have their own methods for file management; even if you could write something that worked on Windows, it will not work on anything other than Windows.

Your best bet would be to regularly schedule a backup of files that must be preserved, and implement a file recovery system that way. It would be a massive undertaking to write, though, and will never come up to the quality of a commercial product.

I would say that you are barking up the wrong tree.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900