Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I am making software for recovering Shift+Delete files from Windows. I know when files are deleted only links to them are cut off by Windows but the actual file remains there at the same place, so recovering them would require myself to search the hard-drive or specifically a particular drive.

I installed the code on an old computer with Windows Millennium Edition and it works. How can I make it workable for Windows 7?? Are there any API's or references for this that will be helpful?

share|improve this question

put on hold as too broad by MichaelT, Ixrec, gnat 4 hours ago

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you doing this for fun or to be a product? – user1249 Apr 10 '11 at 14:45

1 Answer 1

First of all, you'll need to run it as Administrator to get raw access to the drive. Secondly, your code that runs on Windows ME likely works with FAT filesystems (and their variants). For Windows NT-based OSes (i.e. Windows 7) you'll need to write something that understand NTFS.

NTFS is much more complicated than FAT. Worse, there's no public specification - it's Microsoft proprietary. Having said that, some people have spent a lot of time reverse-engineering it already (you'll find more with a bit more googling as well). You can also find source code for an NTFS driver in the Linux source, but that will likely be of relatively limited use for a data recovery tool.

Good luck!

share|improve this answer
Thanks for the help, But so i can't recover deleted data from Windwos 7 OS, you are saying, please specify ...Dean ..anyways thanks again .. – MSU Apr 10 '11 at 3:09
@MSU: Not using your Windows ME software, no. But something written for NTFS specifically then you could. – Dean Harding Apr 10 '11 at 3:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.