问题
is there any to convert a string into Hex using Vb-script?
here there is a simple guide doing this, but it seems it works only for numbers not alphabets.
http://www.w3schools.com/vbscript/func_hex.asp
回答1:
Here it is:
strString = "test"
strHex =""
For i=1 To Len(strString)
strHex = strHex + Hex(Asc(Mid(strString,i,1)))
Next
WScript.Echo strHex
来源:https://stackoverflow.com/questions/24238568/convert-ascii-to-hex-using-vbscript