Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Recovering file after CHKDSK

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
bmelling9
Asked:
bmelling9
1 Solution
 
czpczpCommented:
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
 
demarbCommented:
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
 
bmelling9Author Commented:
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
 
nbellCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now