Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #sudo for windows (not really) //Opens new Window//
- #put the following in a file called sudo.cmd
- @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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement