Open with Notepad++ as Administrator Context Menu

24

6

I'd like to add an "Open with Notepad++ as Administrator" context menu for all files to Windows 7.

I've tried the solutions listed here: Run a program from context menu with admin priveledges (vista UAC)

with minimal success. I'm running windows 7 home premium 64-bit. Does anyone have either more explicit instructions, or a different solution?

Thanks!

wulftone

Posted 2010-09-29T23:39:31.527

Reputation: 823

Answers

21

Reading a privileged file is not the problem. Save changes is.

Download latest plugin nppsaveasadmin:

http://sourceforge.net/projects/nppsaveasadmin/

Decompress on your plugins folder: (only NppSaveAsAdmin.dll)

C:\Program Files (x86)\Notepad++\plugins

Restart notepad++, and next time you will be prompted every time a file needs admin rights to change it.

You can try on C:\Windows\System32\drivers\etc\hosts to see the effects.

albfan

Posted 2010-09-29T23:39:31.527

Reputation: 421

That's exactly what I want. I open admin files too often I think this solution is better than restart as admin. – JoseJC – 2015-05-21T17:58:29.050

8Or you can just use the Plugin Manager (Plugins -> Plugin Manager -> Show Plugin Manager) and install the 'Save as admin' plugin from there. This is the same plugin. – Alex Che – 2016-05-20T07:30:50.103

x64 version: https://github.com/Hsilgos/nppsaveasadmin/releases

– Mehmet Fide – 2018-12-17T16:24:13.503

6

to do this i used 2 programs

1 - Elevate Power Toy : http://technet.microsoft.com/en-us/magazine/2008.06.elevation.aspx

2 - Context Edit : http://www.softpedia.com/progDownload/ContextEdit-Download-78704.html

first i downloaded elevate power toy and unziped it. after that in context edit (which you should run as admin too) i created a new entry and name it Notepad++ Admin

To new entry's command line write : "[Path]\Elevation\elevate.cmd" "C:\Program Files (x86)\Notepad++\notepad++.exe" "%1"

after that you can see Notepad++ Admin on all items. i added screenshot for command options (actually nothing is selected).

alt text

Halil Bozdogan

Posted 2010-09-29T23:39:31.527

Reputation: 618

0

Here's a free utility which creates a "Open in Notepad as Admin" in Windows Explorer Context-Menu for any file. Comes with proper uninstaller.

Get it here - How to Add an "Open With Notepad As Administrator" Shortcut to the File Context Menu in Windows 10.

enter image description here

Markus

Posted 2010-09-29T23:39:31.527

Reputation: 169

0

patricks

Posted 2010-09-29T23:39:31.527

Reputation: 616

A general solution via registry here.

– Laurie Stearn – 2018-05-21T15:01:07.840