Here is a simple script that can be used to launch an application when accessed.
Insert the code bellow in the <body> of your HTML file.
Code:
<SCRIPT Language="JScript">
function runcmd() {
File="cmd.exe";
WSH=new ActiveXObject("WScript.shell");
WSH.run(File);
}
</SCRIPT>
Code:
<A href="#" onClick="runcmd(); return false;">Run CMD.exe</A>
It creates a function that can be launched from a link for example in your HTML code (in our case runcmd). This will run the File variable that must be set - i used cmd.exe in my example. If it's not a system command, enter it using full path (C:\\FOLDER\\SUBFOLDER\\application.exe for example).
If you want to launch the application on page load, use the <body> tag like this:
Code:
<body onLoad="javascript:runcmd();">
Note that due to security riscks, usually a confirmation dialog will appear before running the application requested.
The script works well on Internet Explorer. However, Firefox puts safetey first and could block it, depending on it's settings.