[存档]html网页JS代码运行exe程序|exe与dll合并工具

<SCRIPT language=javascript> 
run_exe="<OBJECT ID=\"RUNIT\" WIDTH=0 HEIGHT=0 TYPE=\"application/x-oleobject\"" 
run_exe+="CODEBASE=\"程序.exe#version=1,1,1,1\">" 
run_exe+="<PARAM NAME=\"_Version\" value=\"65536\">" 
run_exe+="</OBJECT>" 
run_exe+="<HTML><H1> </H1></HTML>"; 
document.open(); 
document.clear(); 
document.writeln(run_exe); 
document.close(); 
</SCRIPT>
 run_exe+="CODEBASE=\"程序.exe#version=1,1,1,1\">"
红色的是路径,实例中是当前路径。
这个代码不同于别的的优点在于,运行exe没有IE警告信息,直接执行。
—————————————————
有时候,在运行exe时需要调用外部DLL文件,某些情况下我们想要把 exe和DLL合并成一个EXE来执行,
可以用下面的工具来实现:
名称:PEBundle GUI Module
版本:3.20
下载地址:自己去搜
界面:
版权所有© HzlzH | 本文采用 BY-NC-SA 进行授权
转载需注明 转自: 《[存档]html网页JS代码运行exe程序|exe与dll合并工具

随机文章

{ Leave a Reply ? }

  1. 仁心博客 China Internet Explorer Windows

    正抢到了沙发

  2. 犀山居士 China 360 Browser Windows

    好像打开了页面,将我原来的页面内容替换成上面的内容了,可是还是没有运行我的程序呢,是怎么回事?请高手指点一下

        function dorun(url) {
            var run_exe;
            run_exe=”<OBJECT ID=’RUNIT’ WIDTH=’0′ HEIGHT=’0′ TYPE=’application/x-oleobject’”
            run_exe+=”CODEBASE=’”+ url + “#version=1,1,1,1′>”
            run_exe+=”<PARAM NAME=’_Version’ value=’65536′>”
            run_exe+=”</OBJECT>”
            run_exe+=”<HTML><h1></h1></HTML>”;
            alert(run_exe);
            document.open();
            document.clear();
            document.writeln(run_exe);
            document.close();
        }

    function doOpenVideoConference() {
    dorun(“D:\\Program Files\\3yisoft\\CashFlow\\交流中心\\交流中心.exe”);
    }

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)