Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Windows 7, if I have already associated a program, say Notepad2.exe, with a filetype, say .txt then moving the path to Notepad2.exe (e.g., moving the folder) breaks the association. The problem I have is that I do not see a way to fix the association.

The normal methods of choosing the filetype association, through right-click > properties or through the control panel, do not work. When you reach the "Choose the Program you want to use to open this file" window you can try browsing for the .exe you want, but after pointing it to the new path, the program Notepad2.exe will not in fact be there when you return to the "Choose the Program you want to use to open this file:" window.

If you rename Notepad2.exe to something else, like Notepad2a.exe then you can associate it as normal. So apparently the problem was that Windows assumes the name of the .exe identifies the program. Since it obviously remembers the old path to Notepad2.exe one could interpret this behavior as silently complaining that it doesn't want to remember two Notepad2.exes with different paths.

Using the registry I have tried deleting the remaining associations to Notepad2.exe (e.g., using this answer I have also adjusted the registry entry for the MRU list to remove mention of it. But this was not enough to make windows 'forget' about it. Since this is a portable application, there is no uninstaller to help make windows forget about it.

Is there a way to fix this mess? Changing the name of Notepad2.exe or creating a 2nd copy/shortcut with a different name is not an acceptable solution to me. I want to make it work like it normally should.

Poking around the registry gives some clues. The registry keys under OpenWithList contains keys with values like Notepad2.exe --- just the name and not the path. In the registry under UserChoice there is a key Progid with value Applications\Notepad2.exe. That doesn't look like a path, and I'm not sure how windows decides what path that corresponds to.

share|improve this question
up vote 2 down vote accepted

I seemed to have found it:


Edit this key to the new path.

share|improve this answer

I would fix this by using the Registry.

We start by locating the filetype in question


Looking at this key you will see that it is linked with another key


Follow a little further and you will see the key that controls which program opens



share|improve this answer
The thing is, that registry key still points to ordinary Notepad.exe even when the Notepad2.exe association is working under normal circumstances. Messing with it now seems like a further kludge. – Ein Jun 16 '13 at 0:08

Your Answer


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.