Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
Have a look a this post: superuser.com/questions/34704/… –  Ganesh R. Aug 9 '13 at 7:19

4 Answers 4

up vote 7 down vote accepted

I gained access to another PC running Windows 7, a computer with which the context menu was intact. I used this machine to peak at it's registry and copy exactly what it had entered. Donig 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 were Content Type and PerceivedType.

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 Registry, but I hope you already knew this)

  1. Open regedit.exe
  2. Expand HKEY_CLASSES_ROOT and look for a .txt key. If none exist, create one.
  3. Within the .txt key, create two new Strings: Content Type and PerceivedType.
  4. (Right click) Modify... and the value for Default should be txtfile.
  5. (Right click) Modify... and the value for Content Type should be text/plain.
  6. (Right click) Modify... and the value for PerceivedType should be text.
  7. Create a new key with the name ShellNew within the .txt key.
  8. Within the ShellNew key, create a new String with the name NullFile.
  9. Within the ShellNew key, create a new Expandable String Value with the name ItemName.
  10. (Right click) Modify... and the value for ItemName should be @%SystemRoot%\system32\notepad.exe,-470

Here are two screenshots of what the final outcome should be:

enter image description here

enter image description here

share|improve this answer

Create a new file with the .reg extension, copy, paste, save and run.

Windows Registry Editor Version 5.00

; clear the key
[-HKEY_CLASSES_ROOT\.txt]

; and recreate
[HKEY_CLASSES_ROOT\.txt]
"PerceivedType"="text"
@="txtfile"
"Content Type"="text/plain"

[HKEY_CLASSES_ROOT\.txt\ShellNew]
; @C:\Windows\system32\notepad.exe,-470
"ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,\
  73,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,00,6f,\
  00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,2d,00,34,00,\
  37,00,30,00,00,00
"NullFile"=""
share|improve this answer

Just add the .txt key yourself and then make sure that the following string value is there:

HKEY_CLASSES_ROOT\.txt\ShellNew\NullFile

The shell will use it to decide which items to put on the 'New' menu.

enter image description here

Microsoft has a KB article about it here: http://support.microsoft.com/kb/140333

If you're adding a brand new type (or fixing a broken one) you may need to add another entry to specify the text used. The default entry for the HKCR.txt should be 'txtfile'. Then make sure you have a HKCR\txtfile entry with default entry something like 'Text Document':

enter image description here

Close all instances of Explorer (ideally reboot) and that should work.

share|improve this answer
    
I tried all these suggestions and still no create new text document option. I even tried downloading a program mentioned in the other thread linked by Ganesh, the program called ShellNewHandeler. No .txt option in my context. –  Matt Aug 9 '13 at 14:18
    
If anyone has other help this is still unresolved. –  Matt Aug 11 '13 at 17:34
    
Updated to include information about the 'txtfile' entry. –  snowdude Aug 12 '13 at 13:09
    
Thanks for your help. However, for some reason still no context menu entry for text documents. My registry editor screenshot looks identical to yours. Is it possible some sort of software is conflicting causing this? –  Matt Aug 18 '13 at 16:44
    
Try creating a dummy key (e.g. for '.tst'). That's how I tested out these instructions. It didn't work for me until I created a tstfile entry and pointed the .tst default key to it. –  snowdude Aug 19 '13 at 9:22

I had this same problem, and even though all the registry keys appeared to be correct, the option for a new Text Document stubbornly refused to appear.

Only after also adding an empty text file named empty.txt to my machine's \Windows\ShellNew folder, did the option show up for me. (The "empty" part of the name appears irrelevant -- Windows will look up the file type's friendly name in the registry. But the extension matters.)

Don't ask me why/how/when the file disappeared...or became required, if it wasn't already there at some point. But that last step is what made things work in my case.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.