I am trying to run a .vbs script on server side via code (HTML Item) on Cognos Report Studio.
I have already tried using <a href="..\samples\scripts\script.vbs"> button </a> but it just opens the script text on browser.
I have tried this code below using PHP, but it did not work:
<?php
function runScript(){
exec("samples\scripts\script.vbs");
echo("done");
}
?>
<a href=# onclick="runScript();">
How could I do that?
EDIT: Both client and server are Windows machines.