Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executables in HTML

Status
Not open for further replies.

chkote

Technical User
Nov 21, 2000
42
AU
Can you run an external executable in HTML without getting a Download Window??
 
No, the browser won't allow this because this would create a massive security hole allowing people to run arbitrary programs (that could contain malicious code) on computers that visit their websites.
 
Try This.


<SCRIPT LANGUAGE=vbscript >



Dim MyObj
Set MyObj=CreateObject(&quot;WScript.Shell&quot;)


MyObj.Run &quot;notepad.exe&quot;



</SCRIPT>
 
I think what he wanted to do was have a program located on a remote host (not already on the user's computer) be automatically downloaded and run on the user's computer immediately without the user having to download it and run it himself.

Now that I think of it, it probably is possible to do this sort of thing with signed scripts, but you'll still need user confirmation to allow you to override security settings in the browser. In any case, look into signed scripts in JavaScript. I'm sure VBScript has analagous functionality also.
 
Thanks for the help. The VB works okay and I shall investigate the signed scripts further.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top