Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Recovering file after CHKDSK

Posted on 1998-12-17
4
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 600 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

715 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