浏览器的安全机制决定了 new ActiveXObject("wscript.shell"); 时候必定会弹出一个安全提示框

解决方案 »

  1.   

    可调其它"notepad.exe"一类的应用程序没弹出这对话框呀!!!!!!!
    网络蚂蚁启动时也没弹出这对话框呀!!!!!!!!!!
    到底如何解决??
    我是在2003下调用的???
      

  2.   

    var wsh=new ActiveXObject("wscript.shell"); 
    wsh.run("D:\\aaaaaa\\WebSave.exe "+"http:\\www.csdn.net\index.htm");
    这样启运没事呀!!!!!没有那对话框!
    可换成这样:
    var wsh=new ActiveXObject("wscript.shell"); 
    wsh.run(location.href.replace("WebSave.htm","WebSave.exe  ")+"http://www.csdn.net");
    就会弹出对话框呀!!!!!!!!!
    为什么如何解决???
      

  3.   

    笔误:wsh.run("D:\\aaaaaa\\WebSave.exe "+"http:\\www.csdn.net\index.htm");
    应为:wsh.run("D:\\aaaaaa\\WebSave.exe "+"http://www.csdn.net");
    location.href.replace("WebSave.htm","WebSave.exe  ")晕!我感觉是一调用这函数就有对话框出现:(如何解决呀!!!!!!!!!!!!!!!!!
      

  4.   

    这样启动应用程序没问题呀!!!!不会有对话框出现呀!!!!!wsh.run("D:\\aaaaaa\\WebSave.exe "+"http://www.csdn.net");
    我的程序启动类似网络蚂蚁呀!IE————右键----WebSave   这样启动呀!
    网络蚂蚁起动时也没有弹出那对话框呀!!!!!!!!!!
    怎么加这location.href.replace("。)这句就弹对话框出来呀!
    不可能用绝对路径呀!!!!
    那我把程序发布后。我怎么知道websave.exe的绝对路径是什么呀!
    老大们帮助一下呀!!!!!!!!!!!!!
      

  5.   

    把ie安全等级降低降低再降低,active允许允许再允许