I have .config files set to open in Notepad++. The files I edit are typically in protected locations (e.g. c:\windows\, c:\program files…, etc..) thus requiring administrator access.
I'd like to be able to double click on a .config file and have Notepad++ open with Administrator privileges. It's fine if the UAC prompt comes up.
Is there a way to do that?
Best Answer
The best way to is to go straight to the folder in which Notepad++ is installed (Program Files for 32 bit Windows and Program Files(x86) for 64 bit Windows), there, find the Notepad++ executable, right-click on it, and select Compatibility, and at the bottom check the box for Run as administrator.
This WILL make your application always pop up with a UAC warning, but you'll always have the ability to edit as administrator.
Good luck!
EDIT: Found this article which allows you to create the shortcut without launching the UAC prompt. It's technically for Windows 10, but should work the same way on Win7+.