I just want to open a notepade.exe using html Js ,I tried this code but its not working Can any one help me over this. This file is run.html !!!
<html>
<head>
<script>
alert("hi");
<!-- myWindow.close(); -->
var param1var = window.location.search.replace( "?", "" );
alert(param1var);
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\Windows\\notepad.exe";
oShell.ShellExecute(commandtoRun,"","","open","1");
window.close()
</script>
</head>
</html>