网上的方法 来自demon.tw 大佬的代码么 就是抄来抄去 | | | | | | | Dim xmldoc, node, bytes | | Set xmldoc = CreateObject("Msxml2.DOMDocument") | | Set node = xmldoc.CreateElement("binary") | | node.DataType = "bin.hex" | | | | | | node.Text = "64656D6F6E2E7477" | | bytes = node.NodeTypedValue | | WScript.Echo VarType(bytes), TypeName(bytes)COPY |
有些离谱的是如果用以上代码WScript.Echo bytes 会输出一堆乱码
完全有更简单的方法 | set v=createobject("wia.vector") | | v.setfromstring("balabala") | | msgbox typename(v.binarydata)COPY |
|