Designon
Designon

Reputation: 183

application executer, desktop icons

i would like to run .exe files on my computer from my website,
example:

 <script type="text/javascript" language="javascript">  
    function RunFile() {  
    WshShell = new ActiveXObject("WScript.Shell");  
    WshShell.Run("c:/windows/system32/notepad.exe", 1, false);  
    }  
</script>  

<input type="button" value="Run Notepad" onclick="RunFile();"/>

I googled this and its seems its only possible in IE so i wonder if its possible to do this in all browsers with some sort of application like BF3 or something, a handler of some sort .dll or whatever they use. I will not abuse this, i can assure you i will only use it for my personal usage and with some friends. I want a html file that can open desktop icons.

Upvotes: 0

Views: 133

Answers (2)

user149341
user149341

Reputation:

There is no way to launch local applications from web pages. As you've no doubt surmised, it's far too easy to abuse.

Upvotes: 1

Jay
Jay

Reputation: 4686

The ActiveXObject is not part of HTML DOM nor JavaScript/ECMAScript standard. It is only available for Microsoft Internet Explorer (MSIE). MSIE for Mac might also lack support of ActiveXObject since ActiveX is Window platform originated.

Upvotes: 1

Related Questions