午夜国产狂喷潮在线观看|国产AⅤ精品一区二区久久|中文字幕AV中文字幕|国产看片高清在线

    vbs獲取文件md5值(無(wú)組件)
    來(lái)源:易賢網(wǎng) 閱讀:1014 次 日期:2016-06-24 09:24:47
    溫馨提示:易賢網(wǎng)小編為您整理了“vbs獲取文件md5值(無(wú)組件)”,方便廣大網(wǎng)友查閱!

    vbs獲取md5值最簡(jiǎn)單的方法是直接調(diào)用capicom組件,但是由于capicom組件系統(tǒng)并不是默認(rèn)安裝,所以使用起來(lái)不方便

    下面這個(gè)代碼不需要組件一樣可以獲取md5值。

    代碼如下:

    option explicit

    dim wi

    dim file

    dim file_size

    dim file_attributes

    dim file_version

    dim file_hash

    set wi = createobject(windowsinstaller.installer)

    file = 111.exe

    file_size = wi.filesize(file)

    file_attributes = wi.fileattributes(file)

    file_version = wi.fileversion(file)

    file_hash = getfilehash(file)

    set wi = nothing

    msgbox file: & file & vbcrlf & _

    size: & file_size & vbcrlf & _

    attributes: & file_attributes & vbcrlf & _

    version: & file_version & vbcrlf & _

    md5: & file_hash

    function getfilehash(file_name)

    dim file_hash

    dim hash_value

    dim i

    set file_hash = wi.filehash(file_name, 0)

    hash_value =

    for i = 1 to file_hash.fieldcount

    hash_value = hash_value & bigendianhex(file_hash.integerdata(i))

    next

    getfilehash = hash_value

    set file_hash = nothing

    end function

    function bigendianhex(int)

    dim result

    dim b1, b2, b3, b4

    result = hex(int)

    b1 = mid(result, 7, 2)

    b2 = mid(result, 5, 2)

    b3 = mid(result, 3, 2)

    b4 = mid(result, 1, 2)

    bigendianhex = b1 & b2 & b3 & b4

    end function

    更多信息請(qǐng)查看腳本欄目
    下一篇:初識(shí)php
    易賢網(wǎng)手機(jī)網(wǎng)站地址:vbs獲取文件md5值(無(wú)組件)
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門(mén)公布的正式信息和咨詢?yōu)闇?zhǔn)!

    2025國(guó)考·省考課程試聽(tīng)報(bào)名

    • 報(bào)班類型
    • 姓名
    • 手機(jī)號(hào)
    • 驗(yàn)證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡(jiǎn)要咨詢 | 簡(jiǎn)要咨詢須知 | 新媒體/短視頻平臺(tái) | 手機(jī)站點(diǎn) | 投訴建議
    工業(yè)和信息化部備案號(hào):滇ICP備2023014141號(hào)-1 云南省教育廳備案號(hào):云教ICP備0901021 滇公網(wǎng)安備53010202001879號(hào) 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號(hào)
    云南網(wǎng)警備案專用圖標(biāo)
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號(hào):hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
    云南網(wǎng)警報(bào)警專用圖標(biāo)