Hi folks,

I'm trying to write a registry value that is set to display a users mail address.
So far, I've used;
 Code:
Writevalue( "HKEY_CURRENT_USER\Mail" , "Mail" , "%username%@domain.com" , "REG_SZ" )


Problem is.. The output in the registry shows up as "username<unkown:domain.com"
To do a little testing i added;
 Code:
If @ReturnCode = 0
   
   ? "@"

Endif


..And sure enough, the resulting "return text" is simply:
0
<unknown:

Is there a way to get around this, and somehow input the "@" character? I was thinking along the lines of somehow using the ASCII code instead, but I couldn't find any solutions by trawling through the command ref..