Here an example for a button to call a VBS-script from IE:
<div>
<p:commandButton type="button" id="runFile"
style="background: lightgrey; margin-bottom: 5x; border: 2px solid"
onclick="javascript:RunFile()" value="execute vbs-script">
</p:commandButton>
</div>
<script type="text/javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("#{ivy.var.get("de_execute_sap_script")}", 5, false);
}
</script>
The local path of the vbs-script is set in global variable.
E.g.:"C:\Daten\skript_IVY_Test.vbs"
The security for the trusted zone in IE should include the IP and name of ivy-server.
And set "initialize and script activex control not marked as safe" to "Prompt" in the security settings for trusted zone.