编程实现exe转vbs的vbs代码
ÐÅÏ?À?Ô??ºÐ??ñ?Ë?øÖÆÐÅÏ???È?ÍÅ?Ó??www.eviloctal.com?? ????Õâ?ö??ÊÇexe2vbs ËùÓÐÀàÐ͵ÄÎÄ?þ???ÉÒÔת??µÄ ???ýÏÞÓÚstringµÄ?óÐ? ÎÄ?þ??ÄÜÌ??ó
ÎÒ?âÊÔ?ý3mµÄÎÄ?þÊÇ?ÉÒÔµÄ
????Tr4c3:ΪÁË???ãÔÚdosÏÂÊ?ÓÃ??ÎÒ?Ñinputbox?Ä?ÉÁËargs ????'Program By xiaolu
????'name:file2vbs.vbs
????On error resume next
????Set Args = Wscript.Arguments
????If Args.length<>2 Then
????Wscript.Echo "Usage:" & Wscript.ScriptName & " c:\muma.exe c:\muma.vbs"
????Wscript.Quit
????End If
????do while 1
????fname = Args(0)
????Set Ado = CreateObject("adodb.stream")
????With Ado
????.Type = 1
????.open
????.loadfromfile fname
????ss = .read
????End With
????exit do
????Loop
????fname = Args(1)
????Set Fso=CreateObject("Scripting.FileSystemObject") ????Set File=fso.OpenTextFile(fname,2, True) ????lens=lenB(ss) mod 500
????For j=0 to int(lenB(ss)/500)-1
????if j=0 then
????File.writeline "ss="""&Bin2Str(midb(ss,500*j+1,500))"""_" ????else
????File.writeline "+"""&Bin2Str(midb(ss,500*j+1,500))"""_" ????end if
????next
????if lens>0 then
????File.writeline "+"""&Bin2Str(rightb(ss,lens))"""" ????else
????File.writeline "+"&chr(34)&chr(34)
????end if
????File.writeline ""
????File.writeline "Set
RS=CreateObject(""ADODB.Recordset""):L=Len(ss)/2:RS.Fields.Append
""m"",205,L:RS.Open:RS.AddNew:RS(""m"")=ss&ChrB(0):RS.Update:ss=RS(""m"").GetChu
nk(L)"
????File.writeline "Set s=CreateObject(""ADODB.Stream""):with s:.Mode = 3:.Type =
1:.Open():.Write ss:.SaveToFile wscript.arguments(0),2:end with"
????File.close
????Set fso=nothing
????Ado.close
????set Abo=nothing
????Function Bin2Str(Re)
????For i = 1 To lenB(Re)
????bt = AscB(MidB(Re, i, 1))
????if bt < 16 Then Bin2Str=Bin2Str"0" ????Bin2Str=Bin2Str & Hex(bt)
????Next
????End Function
????ÖØÐÂÉú?ÉÎÄ?þµÄ?ì??
????cscript xx.vbs x:\xxxx.exe
本文档为【编程实现exe转vbs的vbs代码】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。