Click here to Skip to main content
14,268,557 members
Rate this:
Please Sign up or sign in to vote.
See more:
<html>
<head>
    <title>Application Executer</title>
  <!--  <hta:application id="oMyApp" xmlns:hta="#unknown">
	    APPLICATIONNAME="Application Executer" 
	    BORDER="no"
	    CAPTION="no"
	    SHOWINTASKBAR="yes"
	    SINGLEINSTANCE="yes"
	    SYSMENU="yes"
	    SCROLL="no"
	    WINDOWSTATE="normal">-->
    <script type="text/javascript" language="javascript">
        function RunFile() {
		WshShell = new ActiveXObject("WScript.Shell");
		WshShell.Run("c:/windows/system32/ooVoo.exe", 1, false);
        }
    </script>
</head>
<body>
	<input type="button" value="Run oovoo" onclick="RunFile();"/>
</body>
</html>

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

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.
   
Comments
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