Click here to Skip to main content
15,888,070 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HTML
<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

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.
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900