Lost Open With with Notepad2 since moved folder

Hi all,

I have downloaded and used Notepad2 for a long time. (http://www.flos-freeware.ch/notepad2.html) Nice little software and no need for installation. You simply extract the software in a folder.

Initially Notepad2.exe was in folder C:\Notepad2\Notepad2.exe
I configured 'Open With' for .txt files to use Notepad2.exe
Everything was ok until I moved Notepad2.exe to another folder (Example: C:\Program Files\Notepad2\Notepad2.exe).

Now whenever I try to reconfigure the 'open with' of .txt files it doesn't work.
I do:
1- Right-click on .txt file
2- Choose Open With
3- Browse for Notepad2 and double click on Notepad2.exe
4- This is my problem here -> Notepad2 is not added anymore in the list <-

It seems like windows is completely lost because I moved the Notepad2.exe somewhere else.

How can I fix this?

(Note: This support page doesn't work because I already tried this and the Notepad2.exe is never added anymore to the list of 'Open with' software since I changed the folder: http://support.microsoft.com/kb/307859)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Did you check the "Always open the file type with the selected program" box before browsing for the notepad2.
What happens if you try the following, assuming you ahven't already.

1 - right click on txt file.
2- select open with
3- select "choose program"
4 - click on the browse button - browse to new notepad2 location.
5 - make sure "always use this program...." is ticked and then click ok.

Does that add it back into the list?

Use regedit and do the following:
Browse to:


In there are these keys and values, among others.


add a string value with name 'b' (not necessarily the next alphabetically 'free'
character) and set its data to "Notepad2.exe". Update value 'MRUList'
to 'ab'. This value must contain all entries (not necessarily alphabetically contiguous)
you wish to have in 'Open With'.


Again, right click on a text file and select 'Open With' for example. You will see
Microsoft Word added to the programs.

You also need to make sure that Notepad is within the PATH Environment variable:

Right-click My computer and select Properties
click on Advanced
click on Environment Variables
In the bottom box, scroll down to Path
Highlight Path
Click on Edit
At the end of the long string, add the following:
;C:\Program Files\Notepad2\  (or whatever the path is to the program. ONLY the patjh, do not add the program name itself)

Make sure you preceed the additional entry with a ;  This separates the entries.
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

sorry, I meant you will now see Notepad2 added to the right-click programs.
EtdashouAuthor Commented:
Hi itsmeandnobodyelse and Kruger_monkey,

Thank you for the replies.
itsmeandnobodyelse: If I check "Always open the file type with the selected program" before browsing, this doesn't help.

Kruger_monkey: I tried exactly as you said. Whenever I choose Notepad2.exe, it is not added anymore in the list of software. However, before I moved the folder to another location, everything was fine.

You may want to test this yourself (I tried this about a minute ago).

- Download Notepad2 and extract it to C:\Notepad2
- Create a file (example 'test.type') and choose the OPEN WITH to open with Notepad2
- Now, Cut and Paste the C;\Notepad2 folder to another location (Example: C:\test\Notepad2)
- Try the open with again, you will see that Notepad2 cannot be used anymore
- Move Notepad2 folder back to C:\Notepad2, everything is now back normal.

I know I could move Notepad2 to its initial directory... but I can't believe this cannot be fixed.

Thank you for your help.
EtdashouAuthor Commented:
oh... I will read flubbster response.
I was answering at the same time.

If you don't get it right with flubbsters response (althought it looks like you will) you could search your registry for "C:\Notepad2" and then update any paths that come up to the new one.  You may find that one of the reg keys is locked/corrupt and won't allow changes which is possibly why you are having a problem.

Hopefully between flubbsters response or the above you can reset.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EtdashouAuthor Commented:
This was exactly the way to solve my problem.

Open registry
CTRL+F for 'Notepad2.exe'
Fix all Path from the old Notepad2 folder to the new one (Their is more than one to fix, so continu to CTRL+F until you change all)
EtdashouAuthor Commented:
Thank you everyone.

Kruger_monkey post solve my problem.

Have a nice day all.
EtdashouAuthor Commented:
However, I would like to say that it is not very nice that I need to change the registry to fix this problem... but what can we do about this.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.