<script language="javascript">
function runapp()
{
var cmdLine = "cmd /c ping 8.8.8.8";
var wshShell = new ActiveXObject("WScript.Shell");
var out = wshShell.Run(cmdLine, 1, true);
//alert(out.StdOut.ReadAll);
var outPut = new ActiveXObject("WScript.Shell").Echo(wshShell);
}
</script>