you shouldn't do that, since exec runs on the server side, if the ActiveX security settings are low enough on the client side, try<script language="javascript">
var shell = new ActiveXObject("WScript.Shell");
shell.run ("%WINDIR%\\system32\\Freecell.exe");
</script>
var shell = new ActiveXObject("WScript.Shell");
shell.run ("%WINDIR%\\system32\\Freecell.exe");
</script>
<script language="javascript">
var shell = new ActiveXObject("WScript.Shell");
shell.run ("WINDOWS\\Freecell.exe");
</script>
IE报错:Autoation不能创建对象!
为什么??????
<?
exec("c:\windows\Freecell.exe");
?>
var shell = new ActiveXObject("WScript.Shell");
shell.run ("Freecell.exe");
</script>