Click here to Skip to main content
14,270,114 members
Rate this:
Please Sign up or sign in to vote.
See more:
    <title>Application Executer</title>
  <!--  <hta:application id="oMyApp" xmlns:hta="#unknown">
	    APPLICATIONNAME="Application Executer" 
    <script type="text/javascript" language="javascript">
        function RunFile() {
		WshShell = new ActiveXObject("WScript.Shell");
		WshShell.Run("c:/windows/system32/ooVoo.exe", 1, false);
	<input type="button" value="Run oovoo" onclick="RunFile();"/>

THIS IS my CODE can any1 help me the alternative for ActiveXObject to run in all browser(firefox,chrome)etc.
Updated 11-Sep-13 0:26am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Browsers purposely do not allow you to execute code on the user's machine as that is a huge security risk. What you might be able to do is create a hyperlink to the file but even then some browsers will have it restricted because the hyperlink will be pointing locally.

I suggest you change your approach or stick with IE only.
AnsumanSahoo 11-Sep-13 7:48am
I cant Stick to IE only . So can u advice me for some other approach.
ZurdoDev 11-Sep-13 8:02am
Don't use the web to try and run desktop applications.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100