Solved

Recovering file after CHKDSK

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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Win 7 OS unable to install Win updates 3 88
no display on laptop 5 56
How to create a youtube account 33 94
file size 9 21
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…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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.

746 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

12 Experts available now in Live!

Get 1:1 Help Now