Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Cannot associate .txt file with notepad++ for Admin account

29 Apr 2017   #1

Windows 7 Home Premium 64bit
Cannot associate .txt file with notepad++ for Admin account

System: Windows 7 Home Premium 64 bit

I have 2 types of accounts on my laptop: Administrator (Admin) & Standard User (User)

I installed Notepad++ from the Admin account in the folder C:\Apps\Notepad++.

For the User account, I was able to execute within a Command Prompt window:
From then on, double clicking on a .txt file in the User account would launch notepad++.

For the Admin account, I repeated the above command within a Command Prompt window. However double clicking on a .txt file in the Admin account does NOT launch notepad++. Instead this dialog box opens: "Choose the program you want to use to open this file". So I click on Browse in this dialog box, navigate to the folder C:\Apps\Notepad++, select notepad++.exe, click on Open. But notepad++ never shows up in the dialog box. I can NOT get Windows 7 to associate .txt files with notepad++ for the Admin account. Note that in the Admin account I CAN navigate in Windows Explorer to the folder C:\Apps\Notepad++, double click on notepad++.exe and Notepad++ launches. So this appears to not be a permission problem in the Admin account??

One other interesting note... If I installed notepad++ to the default folder under C: and NOT to C:\Apps, the above association DOES work for the Admin account but NOT for the User account. Weird. That is why I installed notepad++ to C:\Apps\notepad++ -- I needed .txt files to be associated with notepad++ in the User account since that is where I do most of my work.

Why CAN I launch .txt files with notepad++ in the User account but I can NOT do this in the Admin account?

Can anyone tell me what is going on and how to fix this?

My System SpecsSystem Spec
29 Apr 2017   #2

Windows 7 Professional 64-bit

I take you already tried Control Panel's Default Programs' Associate a file type or protocol with a program panel?
My System SpecsSystem Spec
30 Apr 2017   #3

Windows 7 Home Premium 64bit

Yes I tried it. But...............

I figured it out. For the admin account, but not the user account, the path to notepad++.exe in HKEY_CURRENT_USER/software/classes/applications/notepad++.exe/shell/open/command
was wrong. I fixed the path and now the Admin account can correctly open txt files with notepad++.
My System SpecsSystem Spec


 Cannot associate .txt file with notepad++ for Admin account

Thread Tools

Similar help and support threads
Thread Forum
Admin account corrupted and cant access files using Admin p/w
Hi guys when my pc gets to the first screen where you choose your account my admin account has changed from my name to 'Other user' and when I click on it it asks for a username and password. Also trying to access files from the admin account when it prompts me with a password I enter it and the...
General Discussion
User Profile/Account problem (can't login to original admin account)
I'm the only user on this laptop and my admin account was called "HybridPC" and I disabled the windows login screen. (Turn computer on and goes right to desktop). One day the welcome screen popped up out of nowhere and I had to login. I tried disabling the login screen to where it was before and...
General Discussion
How to associate Edit for .BAT to open always with 'Run as Admin' rigt
I'm looking for a way to force 'Edit' in the Explorer context menu for .BAT files to always start my EdiPadPro.exe (just a programers editor) with 'Run as Admin' rights. The best way I know up to now is creating a Shortcut and to add it to 'Send To'. This shortcut can be forced to start my...
General Discussion
built-in admin account vs regular admin account
Pretty basic question (I think). Is the built-in administrator's account exactly the same as a manually created local administrator's account privilege wise? Or does the built-in possess inherently elevated privileges? I have googled around, however, I can't find a clear answer for this. ...
General Discussion
Windows admin account bug? Unable to delete file
This is a strange bug I seen once before in windows 7. I was downloading a video file off megaupload with firefox. Firefox makes 2 files for a download the file itself and a temp file (where all the data goes to till the download is done.) So I pick the dir where I want to place the file and I...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:46.
Twitter Facebook Google+