registry - VBScript RegRead returning extra characters at the end -


i'm trying read value windows registry key following code in vbscript:

set wshshell = createobject("wscript.shell") msgbox wshshell.regread(strregistrykey) 

the value returned somehow right value set in registry , others odd characters concatenated @ end of string:

ex.:

value in registry: database_ora_ts36

value returned: database_ora_ts36Ž#

the key type reg_sz.

does know can happening?


Comments