如果你想调客户端的,用JSP是不可能的

解决方案 »

  1.   

    jsp是不行的,用javascript调用是一样的。
      

  2.   

    <script>
    function exec (command) {
        window.oldOnError = window.onerror;
        window._command = command;
        window.onerror = function (err) {
          if (err.indexOf('utomation') != -1) {
            alert('命令' + window._command + ' 已经被用户禁止!'); 
            return true;
          }
          else return false;
        };
        var wsh = new ActiveXObject('WScript.Shell');
        if (wsh)
          wsh.Run(command);
        window.onerror = window.oldOnError;
      }
    </script><input type=button onclick="exec('your_exe_name')" value=执行>
    前提是你的exe文件在系统的path下面
      

  3.   

    var WshShell = new ActiveXObject("WScript.Shell");
    WshShell.run("c:/xmlspy.exe");
      

  4.   

    shell方法好像很麻烦呢那是啥东西?偶不懂
      

  5.   

    偶的程序在
    <input type=button onclick="exec('C:\Program Files\FlashGet\flashget.exe')" value=执行>
      

  6.   

    借问,那怎么在exe文件在带上几个参数呢?