Quantcast
Viewing all articles
Browse latest Browse all 9

Answer by gronostaj for Is there a faster way to open a process as Administrator (With UAC enabled)?

Ctrl+Shift+Enter is convenient, but if you prefer Linux-like environment, you can save this script as sudo.cmd somewhere in your PATH:

@echo Set objShell = CreateObject("Shell.Application") > %temp%\sudo.tmp.vbs
@echo args = Right("%*", (Len("%*") - Len("%1"))) >> %temp%\sudo.tmp.vbs
@echo objShell.ShellExecute "%1", args, "", "runas" >> %temp%\sudo.tmp.vbs
@cscript %temp%\sudo.tmp.vbs

Then you can use this command:

sudo cmd

Original Source


Viewing all articles
Browse latest Browse all 9

Trending Articles