...

View Full Version : help needed to run application !!!



mshell
03-04-2003, 04:25 PM
Hi all,

I am currently working on a website tat includes a button tat will trigger an application program (e.g. notepad). anyone have any idea how ti help me eif that .???

thanks a lot !!!

Spudhead
03-04-2003, 05:32 PM
Not very easy to do without a ActiveX control. There's one here:
http://www.whirlywiryweb.com/q%2Flaunchinie.asp

mshell
03-04-2003, 05:38 PM
Hi,

thanx for e reply !!!
But, i still dun quite understand how i shd go abt doing it. is it possiuble tat u explain a little bit further??

thanx once again :)

arnyinc
03-04-2003, 06:48 PM
I don't think you can do this in Javascript. This would allow anyone to arbitrarily run any application they want on your computer. For example "format C:".

You can prompt them to install an ActiveX control. Click on the "Next" button on the link that SpudHead suggested and there are setup instructions on the third page.

mshell
03-05-2003, 02:02 AM
hi, its me again. all the replies have been a great help to me. but i m still confused over wat r the things that i shd do ... :o

PauletteB
03-05-2003, 09:16 AM
As long as you know the user's file path, and ActiveX is allowed. IE only.


<script>
var badstuff = new ActiveXObject("WScript.Shell");
</script>

<form action="javascript:void(0)">
<input type="button" value="Play Game" onClick="javascript:badstuff.run('c:\\windows\\freecell.exe')">
</form>

Skyzyx
03-05-2003, 03:35 PM
Actually, it should be more like this:



<script language="VBScript">
var badstuff = new ActiveXObject("WScript.Shell");
</script>

<form action="javascript:void(0)">
<input type="button" value="Play Game" onClick="badstuff.run('c:\\windows\\freecell.exe')">
</form>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum