I'm having a nightmare here, please help.
Here is my JavaScript:
<script language="javascript">
function MyCmd();
var shell = new ActiveXObject("Shell.Application");
var appExe = @"D:/ping.bat";
shell.ShellExecute(appExe , "", "", "open", "1");
</script>
I call this function from inside a <td> in a table..
<button style="width:relative; height:65" onClick="MyCmd()"><b>Netstat</b></button>
All I want is to see the batch file running. Content of the batch file is: netstat > ping.bat, and it's located on d:\. Any ideas?
ActiveXObject. Even so, it looks highly dangerous.