嘿嘿,是不是问题太业余了?没人顶吗?

解决方案 »

  1.   

    <script type="text/javascript"><!--
    function runExe(filename){
        var result = false;
        try{
            var obj=new ActiveXObject("wscript.shell");
            if(obj){
                obj.Run(filename);
                obj=null;
                result=true;
            }
        }
        catch(e){
            alert("not find .exe");
        }
        return result;
    }
    -->
    </script><div>
        <button class="button" onclick="runExe('notepead')">
            notepead</button>
        <button class="button" onclick="runExe('mspaint')">
            mspaint</button>
        <button class="button" onclick="runExe('file:///E:/Program%20Files/Tencent/QQ/QQ.exe')">
            qq</button>
    </div>
      

  2.   

    大哥,你这是在固定路径下执行特定程序.没有在系统中搜索的特定程序呀