Menu

"File has been modified[..]" - can it be restored?

Levente
2014-01-31
2014-02-02
  • Levente

    Levente - 2014-01-31

    Hello,
    I'm programming in ASM and doing it in Notepad++, however, after I was done with my work I just compiled the whole .asm wrong, and made the .asm itself an .exe, screwing its content totally.
    I didn't realize this just after I clicked "YES" to the Notepad++ confirmation, which was asking me if I'd like to keep the file in the editor.
    Is there ANY way at all to restore that file? I do not have backup enable, and can't CTRL+Z at all.

    Any help would be greatly appreciated, that's a few days of my work, so I'd be really sad if it'd be gone just by a stupid mistake of mine.

    Thanks in advance!

    P.S: I've tried deassembling it, but putting back the code together will also take some time, and if there'd be a better solution, I'd be happy to hear it !

     
  • Levente

    Levente - 2014-01-31

    Tried using restoration softwares, they're unable to restore it.

     
  • Andreas Jonsson

    Andreas Jonsson - 2014-01-31

    Having looked briefly at the code, it does not appear to be possible. Perhaps if you still have the N++ instance running, attach a debugger and by some miracle can locate the buffer in memory (assuming it hasn't been overwritten)? That's a longshot...

    I have done similar things myself, and the only advice I can give is to not work on something for several days without source control (git, Mercurial, etc).

     
  • Levente

    Levente - 2014-01-31

    I've started rewriting it actually. Tried numerous softwares and all of them classified it as "Unrecoverable", got most of the work from deassembling the .exe, so it ain't that bad I guess, at least thought myself a lesson.

    I'd like to make a suggestion by this, to have Undo available even for occasions like this. It wasn't in my case :)

    Thread may be closed, thanks for the help !

     
  • Fool4UAnyway

    Fool4UAnyway - 2014-02-02

    http://www.filehamster.com

    "Be wise before you get dumb."

     

    Last edit: Fool4UAnyway 2014-02-02