philz
Joined: 05 Jun 2007 Posts: 87 Location: USA
|
Posted: Mon Oct 08, 2007 8:45 am Post subject: vista a_isadmin |
|
|
is there a way to force a script to run as admin without calling the prompt
i am using the code suggested in the documentation. i would just like to eliminate use of the prompt and simply force admin priviliges.
| Code: | if not A_IsAdmin
{
DllCall("shell32\ShellExecuteA", uint, 0, str, "RunAs", str, A_AhkPath
, str, """" . A_ScriptFullPath . """", str, A_WorkingDir, int, 1)
ExitApp
} |
|
|