I was running NotePad and Chrome when my computer suddenly shuts down.
After reboot, chrome was able to "restore" itself such that I didn't lose any data.
However, how do we "restore" notepad.exe?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
There are lots of text editors that have auto-save save functionality, two of note:
It is not 100% true that notpad data can not be recovered in any case. It depends on the type "shut down" itself. It is possible to create a full memory dump when windows crashes and a restart is forced (e.g. https://support.microsoft.com/en-us/help/254649/overview-of-memory-dump-file-options-for-windows). If the dump is created, the content of the notepad instance will be saved in the memory dump file and can be recovered.
But in most cases the default settings are still active so no complete memory dump will been created and the data unfortunately will lost after the restart. So if you can not use notepad++ (which is the better option in terms of prevention of data loss and data recovery, as most people pointed out correctly) make sure to set windows to create the memory dump in the event of a crash.
In one of my answer (for my own question): How do I recover the content from Notepad when the task froze? I describe how to recover notepad data from a memory dump. Please note that this is not a complete memory dump but just a dump for the notepad instance/process/task (eg when notepad freezes). The complete memory dump will be much larger because it has the data of all processes. But in essence it can be done in the same fashion.
I know this is an old questions but since so many people still use notepad I thought it is worth to add another answer. Feel free to modify it to give more detailed instructions for users that need a step-by-step guide. Or add a comment with a specific question and I will try to give out more informations.
I have found the best solution to this, if you install notepad++ and use 'Resource Hacker' (google it) to change the menu (cut it down) and the icon (change to notepad), and install the autosave plugin in notepad++, then you have something that looks almost entirely indistinguishable to classic notepad! And txt files have the notepad logo.
Also you need to go into settings and turn off a bunch of settings, including under editing tab, turn off line numbering, and change colours in 'style configurator'. The only notable difference is that highlighted text remains black.
Check out this image to see how close it is, you could even cut and rename menu items to look identical but there is no need to be that pedantic.
I just made a zip of notepad++ with the changes I made to the exe. https://mega.nz/#!i1lWyRCI!nwkgu1zxE6Z1XrBTDOZMFKSWvqdqCPgOjH-LDdRpATM