Windows – New text files are created with uppercase extensions

context menufile extensionwindows 7

Whenever I want to create a new text file using Windows 7 Explorer’s New ⇨ Text File context-menu entry, I get a file with an uppercase extension. For example instead of New Text Document.txt, I get New Text Document.TXT.

I searched HKEY_CLASSES_ROOT and found a key named .TXT. I renamed it to .txt and after rebooting, it works as expected. Unfortunately, after a while, it started happening again.

Best Answer

Try the following:

  • Open the registry editor (Startregedit)
  • Navigate to the key HKEY_CLASSES_ROOT\.TXT
  • Select File ⇨ Export and save it to a .reg file
  • Open the .reg file in a text-editor (e.g., Notepad)
  • Perform a search-and-replace to replace all instances of .TXT to .txt
  • Save
  • In regedit, delete the key HKEY_CLASSES_ROOT\.TXT
  • Double-click the .reg file and select [Yes] to import/merge it
  • Reboot
Related Question