...

View Full Version : New Here, Need a little help...



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

A1ien51
08-13-2005, 05:40 PM
You need to use a prompt to ask them what their drive is.

Eric

mrhijinx
08-14-2005, 02:26 AM
You need to use a prompt to ask them what their drive is.

Eric

Cheers Eric...

Any chance of any examples, not having much luck...

Found this on here... http://www.codingforums.com/showthread.php?t=30637
Could any of this be added to the above script in some way??

Cheers Again
Hijinx

mrhijinx
08-16-2005, 04:27 PM
Hi All,

Is there anyone who can help on this one as need a solution fast

Cheers
Hijinx



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum