Solved

Recovering file after CHKDSK

Posted on 1998-12-17
4
283 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 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