Reputation: 4372
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
Upvotes: 1
Views: 12518
Reputation: 4372
Here it is:
strString = "test"
strHex =""
For i=1 To Len(strString)
strHex = strHex + Hex(Asc(Mid(strString,i,1)))
Next
WScript.Echo strHex
Upvotes: 4