Forum: SuRun English speaking RSS
Run command
How to enable Administrative rights
discs #1
Member since Mar 2010 · 10 posts
Group memberships: Mitglieder
Show profile · Link to this post
Subject: Run command
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.
Cosmo #2
Member since Mar 2008 · 451 posts
Group memberships: Mitglieder
Show profile · Link to this post
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.
Thomas
discs #3
Member since Mar 2010 · 10 posts
Group memberships: Mitglieder
Show profile · Link to this post
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.
Kay (Administrator) #4
User title: Weltverbesserer
Member since Nov 2007 · 1507 posts · Location: Magdeburg
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
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. ;-)
quantic #5
Member since May 2009 · 17 posts
Group memberships: Mitglieder
Show profile · Link to this post
In reply to post #3
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.…?p=154745#154…

download the attached file, or copy-paste the above code and download Autohotkey, then use the compiler tool.
The author has attached one file to this post:
runbox.exe | Save   202.3 kBytes, downloaded 108 times
This post was edited on 2010-05-26, 22:51 by quantic.
discs #6
Member since Mar 2010 · 10 posts
Group memberships: Mitglieder
Show profile · Link to this post
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.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Not logged in. · Lost password · Register
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 42.1 ms (22 ms) · 72 database queries in 7 ms
Current time: 2019-07-17, 01:07:08 (UTC +02:00)