I noticed today that there is no longer a "Create new text document" option in my Windows 7 (x64 Ultimate) context menu when I right click. No idea how or when it disappeared, point is it's gone.
After searching Google for people with the same problem I tried following a post in this guide.
But I got stuck right away because I don't see a .txt
key in my registry under HKEY_CLASSES_ROOT
. I only see a .text
but I am not sure if that is the same thing.
Best Answer
I gained access to another PC running Windows 7, a computer on which the context menu was intact. I peeked at the registry of this machine and copied exactly what was entered. Doing so resolved the problem on my desktop with the broken context menu.
Following all the instructions listed above, the two Strings within the
.txt
key that I needed wereContent Type
andPerceivedType
.So then to recap, if you are facing a similar issue, here is what I did to fix this problem. Hopefully it works for you as well.
(First backup the Registry.)
regedit.exe
HKEY_CLASSES_ROOT
and look for a.txt
key. If none exist, create one..txt
key, create two new Strings:Content Type
andPerceivedType
.Default
should betxtfile
.Content Type
should betext/plain
.PerceivedType
should betext
.ShellNew
within the.txt
key.ShellNew
key, create a new String with the nameNullFile
.ShellNew
key, create a new Expandable String Value with the nameItemName
.ItemName
should be@%SystemRoot%\system32\notepad.exe,-470
Here are two screenshots of what the final outcome should be: