SiteKiosk Documentation
One Step Back

ExpandPathVariables Method




The ExpandPathVariables method expands a string's path (and system) variables.


Syntax

    [str=] SiteKiosk.Config.ExpandPathVariables(varStr, sysVars)
    
Parameters
    varStrString that specifies the string containing variables.
    sysVarsBoolean value that indicates whether also to expand system variables.
Return Value
    Returns the given String with expanded path (and system) variables.
Remarks
    Notation of SiteKiosk variables: $(...)
    Depending on the local system, the string '$(SiteKioskPath)\skins' may be expanded to 'c:\program files\sitekiosk\skins'.

    Notation of system variables: %...%
    Depending on the local system, the string '%SystemRoot%\system32' may be expanded to 'c:\windows\system32'.
Examples
    The following example displays the path of the SiteKiosk skins folder.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    folder = "$(SiteKioskPath)\skins";
    folder = SiteKiosk.Config.ExpandPathVariables(folder, false);
    alert(folder);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -