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 Posts517 Views
-
1 Votes9 Posts3k Views
-
0 Votes9 Posts805 Views
-
0 Votes1 Posts340 Views
-
1 Votes11 Posts6k Views
-
0 Votes3 Posts714 Views
-
0 Votes8 Posts4k Views
-
0 Votes14 Posts1k Views
-
0 Votes2 Posts1k Views
-
0 Votes6 Posts891 Views
-
1 Votes2 Posts311 Views
-
0 Votes4 Posts373 Views
-
0 Votes2 Posts1k Views
-
0 Votes7 Posts1k Views
-
-2 Votes9 Posts837 Views
-
-4 Votes2 Posts274 Views
-
1 Votes2 Posts380 Views
-
0 Votes2 Posts396 Views