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>

解决方案 »

  1.   

    能不能不让IE报什么ActiveX不安全之类这样的警告??
      

  2.   

    还是在action后的文件里面写exec函数如何?
      

  3.   

    在window98+IE6.2800版上运行如下代码:
    <script language="javascript">
    var shell = new ActiveXObject("WScript.Shell");
    shell.run ("WINDOWS\\Freecell.exe");
    </script>
    IE报错:Autoation不能创建对象!
    为什么??????
      

  4.   

    execoutcommand.php文件里面:
    <?
    exec("c:\windows\Freecell.exe");
    ?>
      

  5.   

    <script language="javascript">
    var shell = new ActiveXObject("WScript.Shell");
    shell.run ("Freecell.exe");
    </script>