mrhijinx
08-13-2005, 01:58 PM
Hi All...
Wonder if someone can point me in the right direction with this problem.
Don't know a massive amount about Javascript but I'm learning so here goes...
Firstly I wanted to find a way to launch an .exe file from disc via a webpage found this in the form of Launch in IE, for those not familiar with it, click here >>> http://www.whirlywiryweb.com/q%2Flaunchinie.asp
This works very well & was easy to set up etc, the javascript is below...
<html>
<script language="JavaScript">
function launchApp(strCmdLine)
{
var obj = new ActiveXObject("LaunchinIE.Launch");
obj.LaunchApplication(strCmdLine);
}
</script>
<body>
<a
href="javascript:launchApp('f:\\myprog')">
myprog Off Disc!</a>
</body>
</html>
Simple & I understand that this works on my machine as F = my cd rom, but what I need to know is... Is there anything I can replace f:\\ with or add to any of the above so it will run on anyones machine???
Hope This Makes Sense...
Cheers In Advance
Hijinx
Wonder if someone can point me in the right direction with this problem.
Don't know a massive amount about Javascript but I'm learning so here goes...
Firstly I wanted to find a way to launch an .exe file from disc via a webpage found this in the form of Launch in IE, for those not familiar with it, click here >>> http://www.whirlywiryweb.com/q%2Flaunchinie.asp
This works very well & was easy to set up etc, the javascript is below...
<html>
<script language="JavaScript">
function launchApp(strCmdLine)
{
var obj = new ActiveXObject("LaunchinIE.Launch");
obj.LaunchApplication(strCmdLine);
}
</script>
<body>
<a
href="javascript:launchApp('f:\\myprog')">
myprog Off Disc!</a>
</body>
</html>
Simple & I understand that this works on my machine as F = my cd rom, but what I need to know is... Is there anything I can replace f:\\ with or add to any of the above so it will run on anyones machine???
Hope This Makes Sense...
Cheers In Advance
Hijinx