Run exe file using javascript

Hariinakoti
Posted by Hariinakoti under JavaScript category on | Points: 40 | Views : 10088
i found this code via google.

<html>
<head>
<script language="JavaScript" type="text/javascript">
MyObject = new ActiveXObject( "WScript.Shell" )
function RunExe()
{
MyObject.Run("file:///C:/Program%20Files/EditPlus%203/editplus.exe") ;
}

</script>
</head>
<body>
<h1>Run a Program</h1>
This script launch the file any Exe File<p>
<button onclick="RunExe()">Run Exe File</button>
</body>
</html>

Comments or Responses

Login to post response