Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  30] [ 4]  / answers: 1 / hits: 15242  / 12 Years ago, fri, january 18, 2013, 12:00:00

I would like to run an .exe file from the browser I've tried using the iframe command and but can't seem to get this to work all I want is every time someone goes on to the intranet (not the internet) is this possible?



Ok I've been researching this for a while, I understand the implications of doing something like this.



The only reason why I want to do it like this is because I want some updates to run whenever someone goes on the homepage of the intranet such as java, flash etc... is there a possible way to do this with minimal user interaction?


More From » html

 Answers
119

There is no standard way of running executables. You can only execute .exe in IE through ActiveX. Doing it in IE



Javascript to execute the .exe when the webpage loads -



window.onload = function(){
if (!document.all) {
alert (Available only with Internet Explorer.);
return;
}
var ws = new ActiveXObject(WScript.Shell);
ws.Exec(C:\Program Files\Adobe\Photoshop 6.0\Photoshp.exe);
}

[#80780] Thursday, January 17, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pranav

Total Points: 693
Total Questions: 119
Total Answers: 119

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
;