<script>
function run()
{
var obj = new ActiveXOjbect("WScript.Shell");
obj.Run("c:\\winnt\\notepad.exe");
}
</script><input type=button value="运行" onclick="run()">

解决方案 »

  1.   

    panyee(快乐王子) 的例子,我运行后,提示ActiveXOjbect未定义
      

  2.   

    自己编写一个ACTIVEX控件放上去,然后用你的ACTIVEX控件打开你的应用程序
      

  3.   

    <script language="javascript">
      function openNotepad(){
                var shell=new ActiveXObject("wscript:shell");
                shell.run("nodepad d:\\test.ini");
              }
    </script>
      

  4.   

    <script language="javascript">
      function openNotepad(){
                var shell=new ActiveXObject("wscript:shell");
                shell.run("nodepad d:\\test.ini");
              }
    </script>
      

  5.   

    atian25(阿天) 的方法是可行的,我用它实现了使用rar压缩并下载
      

  6.   

    System.Diagnostics.Process Process2=new System.Diagnostics.Process();Process2.StartInfo.FileName="C:\Winrar.exe";  //程序名称Process2.StartInfo.Arguments=" x -inul -y C:\001.rar"; //程序运行的参数Process2.Start();        //进行解压
    while(!Process2.HasExited)           //等待解压的完成
    {
    }
      

  7.   

    winform下winzip和winrar我都调用过了。我想知道的是xp内置的zip怎么调用还有webform调用winform的程序,总有权限问题,还没弄清楚
      

  8.   

    自己编写一个ACTIVEX控件放上去,然后用你的ACTIVEX控件打开你的应用程序
      

  9.   

    快乐王子的做法是对的——这是编程调用.net环境加载应用程序不过你需要添加一个引用