Alaska Software Inc. - runas
Username: Password:
AuthorTopic: runas
Uwe Gellhausrunas
on Wed, 19 Feb 2014 07:49:01 +0100
Re: call an exe as administrator from inside a pgm

New postby anserkk » Wed Feb 19, 2014 4:46 am
oShell:= CreateObject("Shell.Application")
oShell:ShellExecute ("E:\demo\batchScript.cmd", "", "", "runas", 1)
Shaun HerrickRe: runas
on Fri, 21 Mar 2014 08:47:11 -0400
On 2/19/2014 1:49 AM, Uwe Gellhaus wrote:
> Re: call an exe as administrator from inside a pgm
>
> New postby anserkk » Wed Feb 19, 2014 4:46 am
> oShell:= CreateObject("Shell.Application")
> oShell:ShellExecute ("E:\demo\batchScript.cmd", "", "", "runas", 1)

How would this ShellExecute be different than RunShell?
Would this act better on systems with Windows User Account Control enabled?
I've had issues using RunShell where Windows does not display the UAC 
box for the user to click Yes to run the program.

Thanks,
-Shaun