If I want to open Notepad and edit the hosts
file, I have to invoke the Start menu, find the Notepad shortcut, right click and run as administrator, then open the hosts
file in Notepad in order to edit.
Is there a way to use the command line to open Notepad as administrator? Something like press win + R and enter notepad /admin
. Is this possible?
Best Answer
You can do it a little bit faster by pressing
Win
, type in Searchnotepad
and press Ctrl + Shift + Enter.Or you can keep a command-prompt window open with higher privileges all the time and if some program needs to be opened with elevated privileges just start it from there with for instance:
start notepad
.