RunElevated Method




The RunElevated method runs a configured external application as administrator.


Syntax

    SiteKiosk.ExternalApps.RunElevated(path)
Parameters
    path String that specifies the path to the application.
Return Value
    None.
Remarks
    Note that in order for SiteKiosk to be able to automatically close applications started through the SiteKiosk Object Model, they need to be in the list of external applications. External applications can be configured in the SiteKiosk configuration.

    Use slash instead of backslash in the path string.

Examples
    The following example runs an external application as administrator.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.ExternalApps.RunElevated("c:/windows/notepad.exe");
    </SCRIPT>
    

Applies to
    SiteKiosk v7.0 (and later versions).

Back to top