Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recover a .CS class file after crash

I was working on a class in visual studio 2010 when suddenly my computer crashes. after I restart the computer. I start Visual studio and I find that class to be completely empty. it contained more than 1000 lines of codes before the class. is there anyway i can recover that file?

Help please because I don't have another copy of it (Stupid of me)

like image 390
Y2theZ Avatar asked Oct 01 '11 20:10

Y2theZ


People also ask

Are corrupted files recoverable?

Corrupted files are computer files that suddenly become inoperable or unusable. There are several reasons why a file may become corrupted. In some cases, it is possible to recover and fix the corrupted file, while at other times it may be necessary to delete the file and replace it with an earlier saved version.

How do I find my lost Visual Studio code?

You can also specify if you want to restore modified files if Visual Studio shuts down unexpectedly. To access this dialog box, go to Tools > Options > Environment > AutoRecover.

What happens when a file is damaged?

A corrupted file may not open at all, or it may appear scrambled and unreadable. This does not always indicate that the core program is corrupted, however – such as might be the case, for example, when a Microsoft Word file will not open, but all other files of the same type remain unaffected.


1 Answers

This happened to me a few times as well when Visual Studio was crashed or System was shutdown unexpectedly.You can recover these corrupted file using Recuva. It dose not recover the file every time but in most of the cases it's work perfectly.

Below are the settings which you need to configure before recovery.

  1. Start Recuva. Enter Advanced mode if the Wizard launches.
  2. Click Options.
  3. In the Options dialog box, click the Actions tab.
  4. Click Scan for non-deleted files, and then click OK.
  5. Run the Recuva scan as normal. Non-deleted files are indicated with a green double-circle status icon.

Hopefully, you will find your corrupted file in recovered files as it recover multiple versions for that file.

like image 123
Asad Avatar answered Sep 18 '22 09:09

Asad