data recovery - How can I undelete a file using C#? -
i'm trying find lost .jpg pictures. here's .bat file setup simplified version of situation
md testsetup cd testsetup md cd echo "can find later?" > a.abc del a.abc cd.. rd
what code needed open text file again? i'm looking .jpeg files treated in similar manner
more details: i'm trying recover picture files previous one-touch backup directories , files have been deleted , saved in backup single character name , every file has same 3 letter extension. there current backup need view previous deleted ones (or @ least .jpg files).
here's how trying approach it: c# code
to best of knowledge, file recovery tools read low-level filesystem format on disk , try piece deleted files. works because, @ least in fat, deleted file still resides in sector specifying directory (just different first character identify "deleted"). new files may overwrite these deleted entries , therefore make file unrecoverable. that's little bit of theory.
there current backup need view previous deleted ones (or @ least .jpg files).
unless there's backup file at time want restore from, believe you're going have hard time getting file without resorting low-level filesystem read. , then, may out of luck if enough revisions have been made (or it's not trivial filesystem fat).
Comments
Post a Comment