好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > 二進制文件轉換為文本工具

二進制文件轉換為文本工具

熱門標簽:鄭州智能外呼系統運營商 獲客智能電銷機器人 電話機器人適用業務 徐州天音防封電銷卡 湛江電銷防封卡 佛山防封外呼系統收費 哈爾濱外呼系統代理商 不錯的400電話辦理 南昌辦理400電話怎么安裝
保存為.hta運行
復制代碼 代碼如下:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
html>
head>
title>package file v0.1/title>
meta http-equiv="Content-Type" content="text/html; charset=GB2312">
HTA:APPLICATION 
    ID="package file v0.1" 
    APPLICATIONNAME="package file v0.1" 
    VERSION="0.1" 
    SCROLL="no" 
    INNERBORDER="no" 
    CONTEXTMENU="yes" 
    CAPTION="yes" 
    ICON="no" 
    SHOWINTASKBAR="yes" 
    SINGLEINSTANCE="yes" 
    SYSMENU="yes" 
    MAXIMIZEBUTTON ="no"
    WINDOWSTATE="normal"
    NAVIGABLE="yes"
    />

SCRIPT LANGUAGE="VBScript">

function transfert()

    dim filename

    filename = document.getElementById("srcFile").value

    if len(filename)>0 then

        dim oReq    

        'on error resume next
        '//創建XMLHTTP對象
        set oReq    = CreateObject("MSXML2.XMLHTTP")

            oReq.open "get","file:\\"  filename,false
            oReq.send 

        ff = oReq.responseBody

        dim u,s,kk

        u = lenb(ff)

        redim kk(u-1)

        for i=0 to u-1
            s = hex(ascb(midb(ff,i+1,1)))
            if len(s)2 then
                s = "0"  s
            end if
            'kk = kk  s
            kk(i) = s
        next

        make filename,join(kk,"")

    else
        document.getElementById("srcFile").focus
        msgbox "請選擇要壓縮的文件",16,"提示"

    end if

end function

function make(filename,data)

    dim htm,file

    file = mid(filename,instrrev(filename,"\")+1)

    htm = htm  "html>"                     vbcrlf
    htm = htm  "head>"                     vbcrlf
    htm = htm  "title>selfdec/title>"     vbcrlf
    htm = htm  "meta http-equiv=""Content-Type"" content=""text/html; charset=GB2312"">"  vbcrlf
    htm = htm  "HTA:APPLICATION "             vbcrlf
    htm = htm  "    ID=""selfdec"" "         vbcrlf
    htm = htm  "    APPLICATIONNAME=""self"" "  vbcrlf
    htm = htm  "    VERSION=""0.1"" "         vbcrlf
    htm = htm  "    SCROLL=""no"" "             vbcrlf
    htm = htm  "    INNERBORDER=""no"" "     vbcrlf
    htm = htm  "    CONTEXTMENU=""no"" "     vbcrlf
    htm = htm  "    CAPTION=""no"" "         vbcrlf
    htm = htm  "    ICON=""no"" "             vbcrlf
    htm = htm  "    SHOWINTASKBAR=""no"" "     vbcrlf
    htm = htm  "    SINGLEINSTANCE=""yes"" " vbcrlf
    htm = htm  "    SYSMENU=""no"" "         vbcrlf
    htm = htm  "    MAXIMIZEBUTTON =""no"""  vbcrlf
    htm = htm  "    WINDOWSTATE=""normal"""  vbcrlf
    htm = htm  "    NAVIGABLE=""yes"""         vbcrlf
    htm = htm  "    />"                         vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "SCRIPT LANGUAGE=""VBScript"">"         vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "'//保存文件"                 vbcrlf
    htm = htm  "function saveFile(filename,str)"         vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    set adodbStream = CreateObject(""ADODB""  "".""  ""Stream"")"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    adodbStream.Type= 1"     vbcrlf
    htm = htm  "    adodbStream.Open"         vbcrlf
    htm = htm  "    adodbStream.write str"     vbcrlf
    htm = htm  "    adodbStream.SaveToFile filename,2"  vbcrlf
    htm = htm  "    adodbStream.Close"         vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "end function"                 vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "'//VB數組轉變成二進制格式"  vbcrlf
    htm = htm  "Function MultiByteToBinary(MultiByte)"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    Dim RS, LMultiByte, Binary"             vbcrlf
    htm = htm  "    Const adLongVarBinary = 205"         vbcrlf
    htm = htm  "    Set RS = CreateObject(""ADODB.Recordset"")"  vbcrlf
    htm = htm  "    LMultiByte = LenB(MultiByte)"         vbcrlf
    htm = htm  "    If LMultiByte>0 Then"     vbcrlf
    htm = htm  "        RS.Fields.Append ""mBinary"", adLongVarBinary, LMultiByte"     vbcrlf
    htm = htm  "        RS.Open"             vbcrlf
    htm = htm  "        RS.AddNew"             vbcrlf
    htm = htm  "        RS(""mBinary"").AppendChunk MultiByte  ChrB(0)"             vbcrlf
    htm = htm  "        RS.Update"             vbcrlf
    htm = htm  "        Binary = RS(""mBinary"").GetChunk(LMultiByte)"                 vbcrlf
    htm = htm  "    End If"                     vbcrlf
    htm = htm  "    MultiByteToBinary = Binary"             vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "End Function"                 vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "function DeleteMe()"         vbcrlf
    htm = htm  "    "                         vbcrlf
    htm = htm  "    dim filename"             vbcrlf
    htm = htm  "    filename    = document.location.href"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    filename    = mid(filename,instrrev(filename,""/"")+1)"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    Dim fso, MyFile"         vbcrlf
    htm = htm  "    Set fso        = CreateObject(""Script"  "ing.FileS"  "ystemObject"")    "  vbcrlf
    htm = htm  "    Set MyFile    = fso.GetFile(filename)"  vbcrlf
    htm = htm  "        MyFile.Delete"         vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "end function"                 vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "function exec()"             vbcrlf
    htm = htm  "    "                         vbcrlf
    htm = htm  "    '//屏蔽錯誤"             vbcrlf
    htm = htm  "    'on error resume next"     vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    '//改變窗體大小"         vbcrlf
    htm = htm  "    window.resizeTo 0,0"     vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    dim data,t,kk,filename"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    '//得到數據"             vbcrlf
    htm = htm  "    data        = document.getElementById(""divData"").innerText"  vbcrlf
    htm = htm  "    '//得到文件名"             vbcrlf
    htm = htm  "    filename    = document.getElementById(""divFileName"").innerText"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    '//得到數據長度"         vbcrlf
    htm = htm  "     u = len(data)"             vbcrlf
    htm = htm  "    "                         vbcrlf
    htm = htm  "    '//獲得文件數組"         vbcrlf
    htm = htm  "    for i=1 to u step 2"     vbcrlf
    htm = htm  "        t = mid(data,i,2)"     vbcrlf
    htm = htm  "        kk = kk  ChrB(clng(""H""  t))"  vbcrlf
    htm = htm  "    next"                     vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    '//轉變成二進制格式"     vbcrlf
    htm = htm  "    dataArry = MultiByteToBinary(kk)"     vbcrlf
    htm = htm  "    "                         vbcrlf
    htm = htm  "    '//保存文件    "             vbcrlf
    htm = htm  "    saveFile filename,dataArry"             vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    '//刪除自己"             vbcrlf
    htm = htm  "    DeleteMe"                 vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "    '//關閉自己"             vbcrlf
    htm = htm  "    window.opener = nothing" vbcrlf
    htm = htm  "    window.close"             vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "end function"                 vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  ""  "/SCRIPT>"             vbcrlf
    htm = htm  ""  "/head>"                 vbcrlf
    htm = htm  "body marginleft=0 marginright=0 onload=""exec()"">"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "div id=""divFileName""    style=""display:none;"">"  file  "/div>"  vbcrlf
    htm = htm  "div id=""divData""        style=""display:none;"">"  data  "/div>"  vbcrlf
    htm = htm  ""                             vbcrlf
    htm = htm  "/body>"                     vbcrlf
    htm = htm  "/html>"                     vbcrlf

    dim fso,f

    dim this_file
        this_file = file  "-pf.hta"

    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.OpenTextFile(this_file, 2, True)
        f.Write htm

    msgbox "生成文件"  this_file  "成功!",64,"生成"


end function


/SCRIPT>
/head>

body marginleft=0 marginright=0 onload="window.resizeTo 389,145 ">

請選擇文件:input type=file id="srcFile" style="width:260px;">br>br>
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;input type=button value="  轉換  " onclick="transfert">nbsp;nbsp;input type=button value="  關閉  " onclick="window.close">

/body>
/html>

標簽:廣西 紹興 蘭州 吉安 蕪湖 呂梁 懷化 安康

巨人網絡通訊聲明:本文標題《二進制文件轉換為文本工具》,本文關鍵詞  二進制,文件,轉換,為,文本,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《二進制文件轉換為文本工具》相關的同類信息!
  • 本頁收集關于二進制文件轉換為文本工具的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 斗罗大陆黄化人物免费观看完整版| 亚洲欧美另类激情综合区小说| 激情六月丁香婷婷| 久久综合九色综合97小说| 福利电影一区二区| 欧美人畜交| 国产91丝袜脚脚交在线影院| 高清2019av手机版| 日本暧暧| 日本老太老熟妇BBw| 国产一级第一级毛片| 新巴尔虎左旗| 尤物yw193国产在线观看| 欧美国产中文字幕| 男女无遮挡猛进猛出免费视频| 亚洲小视频在线观看| 亚洲无人区码一码二码三码的含义| 成人黄色在线视频| a爱爱爱免费视频大全| 亚洲午夜国产片在线观看| 全色黄大色大片免费观看| 中文字幕第八页| 日韩国产欧美在线观看一区二区| 久久婷婷色一区二区三区asmr| 另类性喷潮videofreehd| 欧美性生大片免费观看| 免费久久精品视频| 抽搐一进一出gif免费动态| 黄色片一级片| 男性专门网站| 暴力强伦轩一区二区在线观看| 国产亚洲精品福利片| 精品视频一区二区| 俄罗斯乱妇| 国产精品久久久久久久无码小树林| 亚洲欧洲专线一区| 扒开双腿猛进入无遮挡软件| 九九免费精品视频在线观看| 欧美老妇人与禽交| 80s手机网站| 女人爽到高潮免费视频|