Great Thanks for your help.
I though I would need an ActiveX but this is good.
Is there any way around the warning?
What if on the first visit to the site it prompts them to add it to their
trusted sites, would this work?
If so could it be done from script?
Thanks
Again
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:l-********************@comcast.com...
"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:dj**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com... Hi
I want to be able to start a locally installed application from
within
a web page.
So if our application is installed it is started when a user clicks a
link
on our page. I know or assume this cannot be done just from JS?
I though I could do it using an OCX active (signed) and then call it from
JS using onclick but can't seem to get this to work!
Any ideas of how I can do this or better still any links to a working
example!
You'll get a security warning but you can do it:
<html>
<head>
<title>run_exe.com/</title>
<script type="text/javascript">
function run(what) {
var wss = new ActiveXObject("WScript.Shell");
wss.Run(what);
}
</script>
</head>
<body>
<form>
<input type="button" value="Notepad" onclick="run('Notepad.exe')">
<input type="button" value="Calculator" onclick="run('Calc.exe')">
</form>
</body>
</html>