Run any exe using JavaScript in WM6!
by vinayak17 - 6/8/10 10:31 PM
Hello all,
I am trying to write some code (using HTML and JavaScript) which runs some exe on a button click. I accomplished the same using code below on WIN XP desktop browsers, but when I run the same code in WM 6 browser nothing happens....niether I get any error message nor any indication of something going wrong.
Can somebody here just confirm that an exe can be executed on WM6 using JavaScript ?
My current code which works on dektops:
<html>
<head>
<script language="JavaScript" type="text/javascript">
MyObject = new ActiveXObject( "WScript.Shell" );
function RunExe()
{
MyObject.Run("\Program Files\Games\Pool\Pool.exe") ;
}
</script>
</head>
<body>
<h1>Run a Program</h1>
This script launch the file any Exe File<p>
<button <nclick="RunExe()">Run Exe File</button>
</body>
</html>
Thanks in advance for your kind consideration.
Awaiting help at the earliest.
As ever,
Vinayak Kadam

Moderator
CNET Staff
Samsung Staff
Dell Staff