Restore missing ‘New-Text Document’ in Windows right-click menu

该文章根据 CC-BY-4.0 协议发表,转载请遵循该协议。
本文地址:https://fenying.net/en/post/2024/06/11/restore-missing-new-text-document-menu/

A strange problem in Bug 10 and Bug 11, the “New Text Document” option in the right-click menu of the File Explorer sometimes disappears for no reason.

Microsoft’s products really smell like sh*t today.

Whatever, let’s just look at the solution.

  1. Save the following content as fix_new_text_document.reg
  2. Double-click it to import this file into the registry
  3. Start the Task Manager, kill the explorer.exe process, and restart it.

Wait, what? How to create such a .reg file without New Text Document menu? All right, here is the guide:

  1. Press Win-R open the Run dialog
  2. Type notepad.exe and press Enter to start the notepad
  3. Paste the content into the notepad
  4. Press Ctrl-S to save it as the file name mentioned above, without .txt extension.
 1Windows Registry Editor Version 5.00
 2
 3; Text Document
 4[-HKEY_CLASSES_ROOT\.txt\ShellNew]
 5[HKEY_CLASSES_ROOT\.txt\ShellNew]
 6"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
 7  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
 8  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,\
 9  2d,00,34,00,37,00,30,00,00,00
10"NullFile"=""

That’s it, rebuild the “New” menu settings for .txt files in the registry.

comments powered by Disqus

Translations: