Using ECHO command

REM Don't display the command lines.
@ECHO OFF
 
SET username=xuan.ngo

REM Escape < and >.
REM In output.txt: <xuan.ngo@openwritings.net>
ECHO ^<%username%@openwritings.net^>>> output.txt

REM Display an empty line.
ECHO #### Use a dot to display an empty line. ####
ECHO.
ECHO #########################################