vbs
辉子
这个作者很懒,什么都没留下…
展开
-
vbs-组合使用
'文件读成16进制 'FileName:需要转变的文件 Function ReadBinary(FileName) Const adTypeBinary = 1 Dim stream, xmldom, node Set xmldom = CreateObject("Microsoft.XMLDOM") Set node = xmldom.CreateElement("binary") ...原创 2020-04-14 12:12:59 · 362 阅读 · 1 评论 -
vbs-二进制转16进制
'二进制转16进制 'binary二进制字符串 Function binaryToHex(binary) binary_len = len(binary) quyu = binary_len mod 4 If quyu <> 0 then ss = 5/0 End If hex_len = binary_len/4 For i = 1 To hex_len st...原创 2020-04-14 12:11:38 · 616 阅读 · 0 评论 -
vbs-16进制转2进制
'16进制转2进制 'Buf 16进制字符串 Function hexTOBinary(Buf) Buf_len = len(Buf) For i = 1 To Buf_len hex_str = mid(Buf,i,1) binary = "" If hex_str = "0" then binary = "0000" If hex_str = "1" then binar...原创 2020-04-14 12:11:06 · 749 阅读 · 0 评论 -
vbs-16进制写成文件
'16进制写成文件 'FileName:指定文件的位置,绝对路径 'Buf 16进制字符 Function Write16ToFile(FileName,Buf) Const adTypeBinary = 1 Const adSaveCreateOverWrite = 2 Dim stream, xmldom, node Set xmldom = CreateObject("Micro...原创 2020-04-14 12:09:51 · 311 阅读 · 0 评论 -
vbs-文件变读成16进制
Function ReadBinary(FileName) Const adTypeBinary = 1 Dim stream, xmldom, node Set xmldom = CreateObject("Microsoft.XMLDOM") Set node = xmldom.CreateElement("binary") node.DataType = "bin.hex" S...原创 2020-04-14 12:08:33 · 525 阅读 · 0 评论