I don’t have success with runas but powershell do the job. Place the text below under the <UserDefinedCommands> section in the shortcut.xml. It will start another instance of Npp with Admin mode.
<Command name="Run Notepad++ in Admin mode" Ctrl="no" Alt="yes" Shift="no" Key="0">powershell.exe -Command "Start-Process '$(NPP_FULL_FILE_PATH)' '-multiInst' -Verb runAs"</Command>-
0 Votes6 Posts1k Views
-
1 Votes6 Posts24k Views
-
3 Votes4 Posts433 Views
-
1 Votes9 Posts3k Views
-
0 Votes9 Posts606 Views
-
0 Votes1 Posts293 Views
-
1 Votes11 Posts5k Views
-
0 Votes3 Posts614 Views
-
0 Votes8 Posts4k Views
-
0 Votes14 Posts957 Views
-
0 Votes2 Posts901 Views
-
0 Votes6 Posts731 Views
-
1 Votes2 Posts246 Views
-
0 Votes4 Posts292 Views
-
0 Votes2 Posts1k Views
-
0 Votes7 Posts1k Views
-
-2 Votes9 Posts720 Views
-
-4 Votes2 Posts222 Views
-
1 Votes2 Posts306 Views
-
0 Votes2 Posts324 Views