Calling an executable using javascript from a button [message #457755] |
Tue, 25 May 2010 20:00 |
msmith362
Messages: 1 Registered: May 2010 Location: Washington, DC
|
Junior Member |
|
|
I am trying to call a program file using javascript from a button. I placed the following in the HTML Header:
<SCRIPT Language="JavaScript">
function runcmd() {
File="C:\Program Files\FMS\Sentinel Visualizer 4.0\SentinelVisualizer.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
}
</SCRIPT>
And then I placed the following in the buttons URL redirect:
onClick=runcmd();
All it does though is redirect to an empty html page. Any ideas as to how I can call a program file executable using a button in the application?
|
|
|