Notepad Appears Twice in “Open With” Menu and Dialog

0 Shares

When you right-click on a text file and click Open with, the Notepad program appears twice in the Open with menu. Also, if you click “Choose another app”, the Open with “dialog” that appears, shows Notepad twice.

notepad appears twice in open with menu

notepad appears twice in open with dialog

This post tells you how to resolve the issue.

Cause

This happens if the association settings for that file type points to the Notepad.exe file in the C:\Windows directory instead of the one in the Windows\System32 directory. Yes. Notepad.exe exists in those two folders by default.

Resolution

Fixing the file association settings in the registry removes the duplicate Notepad entry from the Open with dialog and the Open with menu. Follow these steps (assuming that the issue happens for .txt file type):

  1. Press WinKey + R to open the Run dialog.
  2. Type regedit.exe and click Ok.
  3. In the Registry Editor window, go to the following location:
    HKEY_CLASSES_ROOT\txtfile\shell\open\command
  4. Double-click the (default) value and sets its data as follows:
    %SystemRoot%\system32\NOTEPAD.EXE %1

    (or)

    C:\Windows\system32\NOTEPAD.EXE %1
  5. Exit the Registry Editor.

The above applies to .txt file type. Repeat the procedure for other file types if they’re affected by this problem.

That’s it! Notepad should no longer be listed twice in the “Open with” menu and “Open with” (“How do you want to open this file”) dialog.

Related articles

0 Shares

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.

Leave a Comment