943,587 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3837
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Sep 29th, 2006
0

File recovery programs...

Expand Post »
Just wondering if anybody here has any experience of writing programs in C or C++ to use and manipulate the Master File Table, to restore previously deleted files?.....
Similar Threads
Reputation Points: 14
Solved Threads: 0
Newbie Poster
Fatshadow is offline Offline
4 posts
since Sep 2006
Sep 29th, 2006
1

Re: File recovery programs...

If you want the program to recover the files which you deleted by mistake then you are posting in the wrong forum but still can take a look here:

http://www.pcworld.com/downloads/fil...scription.html
http://www.diskinternals.com/

Hope it helped, bye.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 29th, 2006
0

Re: File recovery programs...

Sorry, What forum should i be posting in?.... i want to write the program in C++ and therefore thought i should post it in the C++ forum... Please advise!!

Just to clarify, i don't want to download a file recovery program... i'm going to write a file recovery program.....and wondered if anybody here and also done this?
Last edited by Fatshadow; Sep 29th, 2006 at 12:48 pm.
Reputation Points: 14
Solved Threads: 0
Newbie Poster
Fatshadow is offline Offline
4 posts
since Sep 2006
Sep 29th, 2006
0

Re: File recovery programs...

Click to Expand / Collapse  Quote originally posted by Fatshadow ...
Sorry, What forum should i be posting in?.... i want to write the program in C++ and therefore thought i should post it in the C++ forum... Please advise!!

Just to clarify, i don't want to download a file recovery program... i'm going to write a file recovery program.....and wondered if anybody here and also done this?
No you posted to the right forum just ~s.o.s~ didn't understand that you want to write the program in c++ and not to recover deleted file
Reputation Points: 251
Solved Threads: 29
Posting Whiz in Training
andor is offline Offline
274 posts
since Jun 2005
Sep 29th, 2006
0

Re: File recovery programs...

Yeah, kind of communication gap.

Just thought that someone with 3 posts wouldnt want to probably write a recovery software (which is a VERY challenging project).

Dude , you need to do a reality check since if you are clueless about how to start, managing this project would be near impossible (you know i am optimistic).

Tell us how much C++ you know, and what is the complexity of the biggest program you have written till date.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 29th, 2006
0

Re: File recovery programs...

c++ or c programs (or programs written in any other language for that matter) are unreliable at best because the os may overwrite the sectors on the next write. Even Norton Utilities is not all that reliable. MS-Windows added the trash can for exactly that purpose, when a file is deleted the os moves it into the recycle bin directory and does not really delete it at all. It would be pretty easy to write a program to move files and directories back to their original location.
Last edited by Ancient Dragon; Sep 29th, 2006 at 1:44 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,947 posts
since Aug 2005
Sep 29th, 2006
0

Re: File recovery programs...

c++ or c programs (or programs written in any other language for that matter) are unreliable at best because the os may overwrite the sectors on the next write. Even Norton Utilities is not all that reliable. MS-Windows added the trash can for exactly that purpose, when a file is deleted the os moves it into the recycle bin directory and does not really delete it at all. It would be pretty easy to write a program to move files and directories back to their original location.
But what you say beats the purpose of the OP. And also in the market there are a lot of file recovery softwares which recover files which are deleted using SHIFT + DEL. And as they are softwares, they are naturally made in some language (i think C/C++), aren't they?
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 29th, 2006
0

Re: File recovery programs...

> and wondered if anybody here and also done this?
Assume the answer is "no", what is your next question going to be?
Then assume the answer is "yes", what is your next question going to be?

Or are you just conducting some kind of survey to see which boards have got the most experienced people?

Get to the real point and ask your real question instead of asking all these "meta" questions like "does anybody know....".
http://www.catb.org/~esr/faqs/smart-questions.html#prune

For what it's worth, your question falls into my category of "if you need to ask, you're not ready to take on the task". There's a whole raft of complex issues which need to be addressed, and only really experienced programmers would have an appreciation of those issues, and would certainly know where to look to find the answers.

At the moment, you're just looking to get real friendly with the fdisk program because of all the times you will completely trash the file system to the point where windows refuses to reboot or repair the damage.

In answer to your meta question, I'll answer a qualified "maybe".
I've only tried this with FAT file systems, and only using spare disks in "read-only" mode, and only in real DOS where there is no concurrent disk accessing going on. It was also a long time ago.

But I'm not interested in nursing you through several months of development if that's what your next question is going to be.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Sep 29th, 2006
1

Re: File recovery programs...

Click to Expand / Collapse  Quote originally posted by Salem ...
> and wondered if anybody here and also done this?
Assume the answer is "no", what is your next question going to be?
Then assume the answer is "yes", what is your next question going to be?

Or are you just conducting some kind of survey to see which boards have got the most experienced people?

Get to the real point and ask your real question instead of asking all these "meta" questions like "does anybody know....".
http://www.catb.org/~esr/faqs/smart-questions.html#prune

For what it's worth, your question falls into my category of "if you need to ask, you're not ready to take on the task". There's a whole raft of complex issues which need to be addressed, and only really experienced programmers would have an appreciation of those issues, and would certainly know where to look to find the answers.

At the moment, you're just looking to get real friendly with the fdisk program because of all the times you will completely trash the file system to the point where windows refuses to reboot or repair the damage.

In answer to your meta question, I'll answer a qualified "maybe".
I've only tried this with FAT file systems, and only using spare disks in "read-only" mode, and only in real DOS where there is no concurrent disk accessing going on. It was also a long time ago.

But I'm not interested in nursing you through several months of development if that's what your next question is going to be.
Not quite sure what i said to annoy you there.... i am not looking for somebody to "Nurse me through several months of development" and there was no "next question" as such... mereley looking to meet people of similar IT backgrounds as myself, i believe they call it "Networking"... also i don't understand why people think that just because i have made only 3 posts i am unqualified to take on this project.... i have recently graduated with a 1st in Forensic Computing (Bsc Hons) and was just looking to expand my horizons from just using file recovery programs to actually writing them, and was hoping to meet somebody with a similar interests that maybe i could discuss, exchange ideas and information with... perhaps this was not the right place??
Last edited by Fatshadow; Sep 29th, 2006 at 8:10 pm.
Reputation Points: 14
Solved Threads: 0
Newbie Poster
Fatshadow is offline Offline
4 posts
since Sep 2006
Sep 29th, 2006
0

Re: File recovery programs...

We didnt mean to hurt to or something like that. Its just that you didnt even mention your problem approach or didnt even post your effort, so it made us think you want ready made solution.

POst some of your efforts or the info you have gathered to prove your point that you are genuinely interested.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: GetFile Help.
Next Thread in C++ Forum Timeline: static data member help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC