Solved

Recovering file after CHKDSK

Posted on 1998-12-17
4
281 Views
Last Modified: 2013-12-28
CHKDSK removed a text file containing C++ code from my hard drive while I was rebooting.  A binary .chk file was saved, but this file is virtually unusable.  Is there any way I can at least partially recover some of the information in this file?  Any help would GREATLY appreciated, as I do not enjoy the prospect of rewriting this file- and yes, I know how foolish I am for not backing it up!!
0
Comment
Question by:bmelling9
4 Comments
 
LVL 3

Expert Comment

by:czpczp
ID: 1796117
When CHKDSK creates a .chk from a text or ascii-type file, you can usually salvage much of the file my simply editing all of the .chk generated and simply copy the undamaged parts to a clipboard then paste it (or piece it) back into your application.  This is the only thing you can do since the actual file is now fragmented.  Your lucky that is a binary file -- it's the only type of file that you can actually salvage from the .chk file.
0
 

Expert Comment

by:demarb
ID: 1796118
Once a file is deleted it is pretty much gone (unless you use a third party undelete utility), and unfortunately you can't undo a chkdsk to go backwards with the .chk file.
0
 

Author Comment

by:bmelling9
ID: 1796119
Thanks for the comments.  After closer inspection of the .chk file, I now realize that it is the object code which my compiler generated for the missing .cpp file (My system crashed in the middle of a build).  I realize this question may now be outside the scope of the NT-General area, but does anyone have any suggestions as to how I could "decompile" the object file to recover some of the source.  If I could even get a skeleton of what I had before, it would be helpful.  Thanks again.
0
 

Accepted Solution

by:
nbell earned 150 total points
ID: 1796120
You can disassemble an executable file into an assembly language approximation of the original code. You can then reconstruct your highlevel language code.

See the following URLS for dissamblers:

http://www.eccentrica.org/Mammon/tools.html
http://www.tbcnet.com/~clive/vcomspad.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now