Even more simple: If you have the RUN dialog open, and want to run e.g. "notepad" as administrator, just type "Surun notepad", hit enter and you're done. ;-)
you can do it this way also:

1. create one of these scripts:
"runbox.js"
(new ActiveXObject("Shell.Application")).FileRun()
"runbox.vbs"
Dim objShell
Set objShell = CreateObject("Shell.Application")
objShell.FileRun

2. create a shortcut with the following target:
%windir%\surun.exe wscript.exe f:\run.js //b
or
%windir%\surun.exe wscript.exe f:\run.vbs //b
// replace f:\ with your path



edit:

doesn't seem to work...
surun's dialog box pops-up but when some cmd is run from the RUN box there isn't any elevation..

use Kay method


edit2:

finally managed to do it...run box actually runs elevated.

instead of the above scripts, use an ahk script converted to exe.
the exe contains the following code:
hMod  := DllCall("GetModuleHandle",Str,"Shell32" ) 
pAddr := DllCall("GetProcAddress", UInt,hMod , UInt,61 ) 
DllCall( pAddr, UInt,0, UInt,0, UInt,0, UInt,0, UInt,0, UInt,0 )
since the only thing I did was the conversion to exe, real credits go here:
http://www.autohotkey.com/forum/viewtopic.php?p=154745#154745

download the attached file, or copy-paste the above code and download Autohotkey, then use the compiler tool.
I have used Surun for a while. Thank you.

I would like to know how to use the Run command with Administrative rights, while I am in Surun as a Limited user.

By the run command I mean as in: 'the Run command is accessible through the Start menu and also through the shortcut key. (Windows key + R)'. When I right click on the 'Run' program there is no option to run it as an administrator.

I have searched the English forum and would appreciate help on this.

Thank you.
If you have the Run-dialog open and right click on the title bar, you should see the command to (re-) open as Administrator. If not so, you must enable at least one of the 2 options of the general settings in Surun in the shell integration part.
Thank you, Cosmo. Yes, I have the 'Start as Administrator' when I click on title-bar of Run-dialog box.

So, I click on the title-bar of the Run-dialog box to start as administrator. It then opens a Windows Explorer window with 2 panes: a left-hand 'Folders' pane showing the whole system of folders, starting with 'Desktop'; this pane highlights 'My Documents' which are shown in the right pane.

I am not very technically minded, but am I supposed to be able to access the run-dialogue box from this Windows Explorer window in some way?

Thanks again, for your help.
Thanks, Kay and quantic, for the update. I am not into scripts (yet :-)), quantic, so I will go for the 'Kay' solution.
Thank you for solving this for me.
Eine Antwort schreiben…
Impressum, Datenschutz