The first of these methods
1, at the same time press the "Win" (Window key) + "R" key or in the "Start" menu Search "Run", Bring up the "Run" menu, enter Cmd.exe, press ENTER to determine, enter the command prompt interface.
2, in the "Command prompt Interface" input "REG add" Hkey_classes_root.txt "/ve/d" txtfile "/F", press ENTER to determine, the following figure.
3, in the "Command prompt interface" and then enter "REG add" hkey_classes_root.txtshellnew "/V" nullfile "/F", press ENTER to determine.
4, now, we in the desktop space right click, select New, text document options have been restored.
The second method
1, click the "Start" menu, find "All Programs" in the "attachment" double-click "Notepad", OK open Notepad.
2, we add the following code in the new Notepad, as shown in the figure.
Windows Registry Editor Version 5.00
[Hkey_classes_root.txt]
@= "Txtfile"
"Content Type" = "Text/plain"
[Hkey_classes_root.txtshellnew]
"Nullfile" = "" [Hkey_classes_roottxtfile]
@= "Text Document"
[Hkey_classes_roottxtfileshell]
[Hkey_classes_roottxtfileshellopen]
[Hkey_classes_roottxtfileshellopencommand]
@= "Notepad. EXE%1 ".
3, the new Notepad select Save As, named Notepad.reg, choose to save the path, and then click "Save".
4, in our selected file path, double-click the Notepad.reg registry file, it will be imported into the registry. A warning prompt will appear, click "Yes" to allow the import, the right key to the new text document option has been restored.