Click to See Complete Forum and Search --> : PLEASE HELP:Scripting


ttohme
03-28-2006, 02:46 PM
Hello,

Here is what I'm despretally trying to do:

I am trying to run an executable from an HTML based page.
Everytime I try something I keep getting the ActiveX warning dialog, is there anyway I can run an exe from html without having this warning ?
The warning seem to come up when CreateObject instruction is executed.

here is the code:
<HTML>
<HEAD>
</HEAD>
<BODY>

<script language="vbscript">
Set Shellob=CreateObject("WScript.Shell")

strParams="2003000"
strParams=chr(34) & strParams & " " & "EN" & chr(34)
strProgPath="Launch.exe"
strProgPath=chr(34) & strProgPath & " " & strParams & chr(34) 'add double quotes
msgbox strProgPath

Shellob.Run strProgPath

Set Shellob=Nothing
</script>


thanks in advance.

A1ien51
03-28-2006, 03:03 PM
Would you want anyone to be able to run an exe without your knowledge. Hello adware!

Eric

ttohme
03-28-2006, 03:07 PM
well the exe will be ran from an html help which is a webpage, so unless someone changes the content of the help.
Basically the html help file has a button, when you click it, it's suppose to run the exe, but it keeps prompting the ActiveX control warning message.

Do you have any suggestions on how to approach this.

thanks

JPnyc
03-28-2006, 03:13 PM
You can't get around it. The message is there to protect users from malicious sites. If it was easy to get around, there'd be no point in having it.

ttohme
03-28-2006, 03:15 PM
how come then there are some help file like windows help, when clcik on console management it brings up the the control panel console manager which is an exe without warning?
There must be a way to bypass it if the operating system knows that the exe is safe or the control is safe.

cheers

A1ien51
03-28-2006, 03:20 PM
If I know what you are talking about, you are talking about file built into the operating system and help from an outside source. I would say install a client application....

Eric