@HEXENCODE[s,string] : Create a hexadecimal string from a text input string. Returns the hex string.

@HEXENCODE[inputfile,outputfile] : Encode a text file as a hex encoded file. Returns 0 if the output file was successfully written.

 

Example:

 

echo %@hexencode[s,encode this string]

656e636f6465207468697320737472696e67