right click launch npp as administrator
-
I’m using the following in regedit:
[HKEY_CLASSES_ROOT*\shell\Notepad++\command]
@="“D:\Utilities\PortableApps\Notepad++\notepad++.exe” “%1"”to add npp to right click, is there any way I could launch it as administrator?
-
That’s a Windows/registry question, not a Notepad++ question: it could be phrased as “how do I setup the registry to run application
blah.exe
, or batch fileblah.bat
, with elevated permission”. Since the same answer will suffice, no matter the values ofblah.exe
orblah.bat
, and it’s not a Notepad++ question, then you’ve asked in the wrong placeAs a hint for finding the solution: I believe you need to look into “runas” for the registry, but I’m not 100% sure. Good luck googling.
-
well, the answer was in npp community, not google exactly:
https://notepad-plus-plus.org/community/topic/6929/windows-10-shell-context-menu-error/5