Start NP++ in elevated mode
-
I know that I can set a shortcut to open NP++ in Admin mode, but is there a way to do that from the command-line so that it can be used in a keyboard shortcut?
-
The cmd.exe command
runasshould do what you want. -
Hello, @Charles-Billow
Please follow these steps to open notepad++ using command.
Step 1:- Open Command Prompt.
Step 2:- Type command to start notepad++.C:\Users\Admin> Start Notepad++Step 3:- If you want to open particular Notepad++ file then type Command.
C:\Users\Admin> Start Notepad++ [FileName]I hope above information will be useful for you.
Thank you. -
OK, thanks guys.
-
How do your instructions guarantee an opening of N++ in Administrator mode?
-
I don’t have success with
runasbut powershell do the job. Place the text below under the<UserDefinedCommands>section in theshortcut.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>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login