So what you mean is you want to convert each character in a string to the hex value of their ascii equivalents?
Local s$ = "Cube\cube.exe"
Local count = 1
While count <= Len(s)
Print Right(Hex(Asc(Mid(s, count, 1) )),2)
count = count + 1
Wend
WaitKey()