Witam.
Próbuję uruchomić program na komputerze klienta poprzez stronę internetową. Założenie ma być proste. Klient klika w link i uruchamia dany program (putty). Niestety rozwiązanie jakie chciałem zastosować nie działa.
<html>
<head>
<title>Application Executer</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="Application Executer"
BORDER="yes"
CAPTION="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
SCROLL="yes"
WINDOWSTATE="normal">
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Exec("c:/windows/system32/calc.exe", 1, false);
}
</script>
</head>
<body>
<input type="button" value="Run Calc" onclick="RunFile();"/>
</body>
</html>
Powyższa wersja niestety nie działa ale może ktoś z was wie jak to zrobić aby uruchomić program z parametrami?