<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
<title>Run Executable HTA</title>
<script language="javascript" type="text/javascript">
function RunEXE()
{
var oShell = new ActiveXObject("WScript.Shell");
var prog = "c:\\WINDOWS\\system32\\notepad.exe";
oShell.Run('"'+prog+'"',1);
}
</script>
</head>
<body>
<input id="Button1" onclick="RunEXE()" type="button" value="Notepad" />
</body>
</html>
not working, ActiveX is not defined error .