User78336405 posted
Hi,
To launch an application on the client machine, place this script in the head of the HTML page.
<script language="javascript" type="text/javascript">
function runApp()
{
var shell = new ActiveXObject("WScript.shell");
shell.run("notepad.exe", 1, True);
}
</script>
Only IE has support for ActiveX, so this won't work in any other browser. The user must answer "YES" to a warning that the page is trying to execute ActiveX code.
Additionally, the ws.Exec command is available only in Windows Script Host 5.6 which is standard in Win 2k and XP, but not in earlier versions.
Alternatively, if you use for example,
location.href = "C:\\Program Files\\Adobe\\Photoshop 6.0\\Photoshp.exe";
the browser will give a file-download dialog to which the user must choose "Open".