This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 About
 Did you know...
 DYK: Starting Programs Which Require Elevation
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rob

USA
2615 Posts

Posted - 01/20/2013 :  08:13:43  Show Profile  Visit Rob's Homepage
Did you know...

If S+ isn't running with administrative privileges, acRunProgram will fail to start an application which requires elevation; you won't know other than the fact that the program did not open. While running the signed version of S+ allow it to interact with elevated programs, S+ still doesn't have the privilege to start one.

To start a program which requires elevation, you will need to use the "runas" verb via acShellExecute:
acShellExecute("runas", "c:\\windows\\system32\\taskmgr.exe", "", "", 1)
This will present the standard UAC prompt and let you start the program.

Of course, if you don't want to deal with that, you can choose to run S+ with admin privileges or disable UAC in Windows entirely.
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000