473,395 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

File Recovery in C++

dfound
52
Hi , I am writing a program that would do many functions like shredding , encrypting, shutting down computer , changing file attributes , viewing image files etc.... I also want it to have a function to recover deleted files but I have no idea on how to do this. Can any one help..... ???? :-)
Jun 14 '07 #1
5 4785
DeMan
1,806 1GB
OK.....best way to make it easy for us to help.....
Make a plan of what you want to do.
Split all these ideas apart (so we can address them one at a time).
Think about how we would approach these problems.
Post again your thoughts on how to approach (any slight idea you might have - or why everything is baffling).......
A lot of what you want to do is reasonably complex, so it might help if you can also briefly outline how confident/competent you are with c++.
Jun 14 '07 #2
dfound
52
OK.....best way to make it easy for us to help.....
Make a plan of what you want to do.
Split all these ideas apart (so we can address them one at a time).
Think about how we would approach these problems.
Post again your thoughts on how to approach (any slight idea you might have - or why everything is baffling).......
A lot of what you want to do is reasonably complex, so it might help if you can also briefly outline how confident/competent you are with c++.
Eventhough I am a newbie, I know how to use the WIN32 API and handle or intercept meaasges from the applications. I have created a registry editor,
a key-logger,and such things using WinAPI . I dont need any help on encrypting and other things. I just want to know hoe to retrieve deleted files coz I dont know if an API exists for such a task....
By the way, thnkz for the reply...
Jun 15 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
By deleted files I assume you mean those not in the wastebasket. If thats the case, you are down to a sector by sector read of the disc where you attempt to reconstruct files from whatever fragments are there.

Is this a like a crashed disc recovery program?
Jun 15 '07 #4
dfound
52
By deleted files I assume you mean those not in the wastebasket. If thats the case, you are down to a sector by sector read of the disc where you attempt to reconstruct files from whatever fragments are there.

Is this a like a crashed disc recovery program?

Yest recovering permanently deleted files. Is there an API to do this???

thnkz 4 the reply..
Jun 16 '07 #5
weaknessforcats
9,208 Expert Mod 8TB
Yest recovering permanently deleted files. Is there an API to do this???
Not that I know of.

This sort of thing would be buried deep in the OS kernal where the file system resides. Most likely the OS wouldn't have an API that could allow users to destroy the file system.

I would start with the disc manufacturer and look at the software that's made available to OS writers. However, you may need privileged instructions to do this.
Jun 16 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Bucfan1 | last post by:
Hello All, I have been encountering trouble with a SQL Server 2000 Transaction log file, mainly with the constant growth and lack of the autoshrink option. Here are the details: 1.) OS is...
2
by: Abdul Salam | last post by:
hi, my sql database log file has been fulled recently ..... becuase there are 55 millions records in main 3 tables .... so how i can empty log file ... i don't want to attach new log file or...
14
by: Peter CCH | last post by:
Database log of my DB is around 2GB. The database is using FULL recovery option. I want to reduce the file size of the log cause it takes up a lot of space. I'd do a full database backup,...
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
3
by: jignesh shah | last post by:
Hi all, Is there a way to recover a single container if its been corrupted or mark bad without restoring whole tablespace? environment: db28.1/aix5.1/tsm/rs-6000. Regards Jignesh
2
by: Racerx | last post by:
Hi All : I use db2 8.1 fixpack 3 on AIX. I recieved the following message in the diaglog ====================================================== ADM7513W Database manager has started. ...
3
by: danceli | last post by:
"The log file for database is full. Back up the transaction log for the database to free up some log space." Now I only know this way to deal with that manually, Step1. in option , chance...
1
by: hedgracer | last post by:
I would like to allow a particular user to truncate a log file in a stored procedure that the user runs every day. At this moment the only personnel that can truncate the log file are personnel...
0
by: Reshmi Jacob | last post by:
Hi My problem occurs in a network with 40-50 systems working from a server. Current users will be kicked out with "ORA-01092: ORACLE instance terminated. Disconnection forced", and users trying...
2
by: Tin | last post by:
I bought a laptop and burned 4 recovery CDs for recovery purpose. Instead of burning as disc images, I just copied and pasted these 4 CDs to my USB HDD as 4 folders called "RecoveryCD 1",...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.