paulsiew
asked on
oShell.ShellExecute problem
Hi,
I want my php script to execute an exe file at the client's machine, i use oShell.ShellExecute() (activeX) to call the exe file, but it display an error msg saying permission denied. I suspect this because of the windows security updates that disabled the oShell.ShellExecute() fucntion.
Here is my code,
<script language=\"JavaScript\" type=\"text/javascript\">
function executeCommands()
{
// Instantiate the Shell object and invoke its execute method.
var oShell = new ActiveXObject(\"Shell.Appl ication\") ;
var commandtoRun = \"C:\\dial.exe\";
var commandParms1 = document.dialform.CRMID.va lue;
var commandParms2 = document.dialform.CallNo.v alue;
var b = commandParms2 + \",\" + commandParms1;
// Invoke the execute method.
oShell.ShellExecute(comman dtoRun, b,\"\", \"open\", \"1\");
}
</script>
<input type=Button name=Button2 value="Call Now" onClick="executeCommands(' + hasPARMS + ')">
I want my php script to execute an exe file at the client's machine, i use oShell.ShellExecute() (activeX) to call the exe file, but it display an error msg saying permission denied. I suspect this because of the windows security updates that disabled the oShell.ShellExecute() fucntion.
Here is my code,
<script language=\"JavaScript\" type=\"text/javascript\">
function executeCommands()
{
// Instantiate the Shell object and invoke its execute method.
var oShell = new ActiveXObject(\"Shell.Appl
var commandtoRun = \"C:\\dial.exe\";
var commandParms1 = document.dialform.CRMID.va
var commandParms2 = document.dialform.CallNo.v
var b = commandParms2 + \",\" + commandParms1;
// Invoke the execute method.
oShell.ShellExecute(comman
}
</script>
<input type=Button name=Button2 value="Call Now" onClick="executeCommands('
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER