possible to launch an app from ie rather than default open,save or cancel

Soldato
Joined
27 Apr 2007
Posts
3,233
As above, I am making a very basic little page to allow shop floor staff to print labels, I have made the basic front end pages to direct them to the appropriate department. From there I want them to click on a label size, this will then launch the program locally (I can add switches to open the prompt only rather than the whole program) ready to pick the job and print then close on completion. I would rather they didnt have to click on open each time.
Any ideas or advice? The labelling software is Bartender from Seagull for reference.
 
What's the client browser? Generally speaking this isn't really doable for security reasons. i.e if a website can start executing software on the client machine it's pretty dangerous.

If it's IE you could maybe get away with something like, but it will prompt several user warnings and acceptance screens.

Code:
<html>
<head>
<title>Launch Software</title>
</head>

<body>

<SCRIPT Language="JScript">
function openProg() {
cmd = "c:\\windows\\write.exe";
WinSH = new ActiveXObject("WScript.Shell");
WinSH.run(cmd);
}
</SCRIPT>

<A href="#" onClick="openProg(); return false;">Run Software</A>

</body>
</html>

Not sure how you could do it for Firefox, possibly a Java Applet although I think that's only possible if the code is signed. So you might be out of luck.
 
Internet explorer only fella, to be used on less than half a dozen machines so if anything needs configured locally, not a problem. Thanks for the example btw, I'll give it a go.
 
Back
Top Bottom